Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/packer-sdc/internal/plugincheck/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## `plugin-check`

`plugin-check` will check wether a plugin binary seems to work with packer.
`plugin-check` will check whether a plugin binary seems to work with packer.

Use: `packer-sdc plugin-check packer-plugin-happy-cloud`
3 changes: 2 additions & 1 deletion cmd/packer-sdc/internal/plugincheck/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (cmd *Command) run(args []string) error {
return errors.New("APIVersion needs to be set")
}

if len(desc.Builders) == 0 && len(desc.PostProcessors) == 0 && len(desc.Datasources) == 0 {
if len(desc.Builders) == 0 && len(desc.PostProcessors) == 0 && len(desc.Datasources) == 0 && len(desc.Provisioners) == 0 {
return errors.New("this plugin defines no component.")
}
return nil
Expand All @@ -92,6 +92,7 @@ type pluginDescription struct {
Builders []string `json:"builders"`
PostProcessors []string `json:"post_processors"`
Datasources []string `json:"datasources"`
Provisioners []string `json:"provisioners"`
}

func isOldPlugin(pluginName string) bool {
Expand Down