Skip to content

Commit

Permalink
Update didyoumean to call provisioners.List()
Browse files Browse the repository at this point in the history
  • Loading branch information
nywilken committed Nov 23, 2023
1 parent 311ba90 commit 17ff508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packer/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func (c *Core) generateCoreBuildProvisioner(rawP *template.Provisioner, rawName
strings.Split(rawP.Type, "-")[0],
)

if sugg := didyoumean.NameSuggestion(rawP.Type, c.components.PluginConfig.Builders.List()); sugg != "" {
if sugg := didyoumean.NameSuggestion(rawP.Type, c.components.PluginConfig.Provisioners.List()); sugg != "" {
err = fmt.Errorf("Did you mean to use %q?", sugg)
}

Expand Down

0 comments on commit 17ff508

Please sign in to comment.