scripts: update internal plugin gen to support new provisioner
This commit is contained in:
parent
487a37b0dd
commit
447a5c8b9e
|
@ -91,7 +91,7 @@ func makeProviderMap(items []plugin) string {
|
|||
func makeProvisionerMap(items []plugin) string {
|
||||
output := ""
|
||||
for _, item := range items {
|
||||
output += fmt.Sprintf("\t\"%s\": func() terraform.ResourceProvisioner { return new(%s.%s) },\n", item.PluginName, item.ImportName, item.TypeName)
|
||||
output += fmt.Sprintf("\t\"%s\": %s.%s,\n", item.PluginName, item.ImportName, item.TypeName)
|
||||
}
|
||||
return output
|
||||
}
|
||||
|
@ -254,8 +254,8 @@ func discoverProviders() ([]plugin, error) {
|
|||
|
||||
func discoverProvisioners() ([]plugin, error) {
|
||||
path := "./builtin/provisioners"
|
||||
typeID := "ResourceProvisioner"
|
||||
typeName := ""
|
||||
typeID := "terraform.ResourceProvisioner"
|
||||
typeName := "Provisioner"
|
||||
return discoverTypesInPath(path, typeID, typeName)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue