scripts: update internal plugin gen to support new provisioner

This commit is contained in:
Mitchell Hashimoto 2016-12-22 18:03:47 -08:00
parent 487a37b0dd
commit 447a5c8b9e
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
1 changed files with 3 additions and 3 deletions

View File

@ -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)
}