From f043954352d2b9a3064638a2bb869f981eada6bd Mon Sep 17 00:00:00 2001 From: ScottWinkler Date: Mon, 26 Mar 2018 20:22:53 -0700 Subject: [PATCH] Fix scrub mistake Fixed a bug in which an example custom provider would be saved as "terraform-provider-custom-v0.0.1" instead of "terraform-provider-custom_v0.0.1". Not an issue when running the bundle on TFE, but a problem when trying to run a terraform bundle locally. --- tools/terraform-bundle/package.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/terraform-bundle/package.go b/tools/terraform-bundle/package.go index faf6ea640..096ef5ddf 100644 --- a/tools/terraform-bundle/package.go +++ b/tools/terraform-bundle/package.go @@ -173,7 +173,7 @@ func (c *PackageCommand) Run(args []string) int { if len(foundPlugins) > 0 { plugin := foundPlugins.Newest() - CopyFile(plugin.Path, workDir+"/terraform-provider-"+plugin.Name+"-v"+plugin.Version.MustParse().String()) //put into temp dir + CopyFile(plugin.Path, workDir+"/terraform-provider-"+plugin.Name+"_v"+plugin.Version.MustParse().String()) //put into temp dir } else { //attempt to get from the public registry if not found locally c.ui.Output(fmt.Sprintf("- Checking for provider plugin on %s...", discovery.GetReleaseHost()))