From 17ff50896e01fb749a939a493f4404b95f7814bc Mon Sep 17 00:00:00 2001 From: Wilken Rivera Date: Wed, 22 Nov 2023 21:14:32 -0500 Subject: [PATCH] Update didyoumean to call provisioners.List() --- packer/core.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packer/core.go b/packer/core.go index 4803f1de474..7a56dc06cc5 100644 --- a/packer/core.go +++ b/packer/core.go @@ -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) }