Skip to content

Commit

Permalink
terraform-bundle: fix panic with addrs.Provider
Browse files Browse the repository at this point in the history
  • Loading branch information
mildwonkey committed Dec 12, 2019
1 parent 49fc53d commit 8c6ae66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/terraform-bundle/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func (c *PackageCommand) Run(args []string) int {
} else { //attempt to get from the public registry if not found locally
c.ui.Output(fmt.Sprintf("- Checking for provider plugin on %s...",
releaseHost))
_, _, err := installer.Get(addrs.Provider{Type: name}, constraint)
_, _, err := installer.Get(addrs.NewLegacyProvider(name), constraint)
if err != nil {
c.ui.Error(fmt.Sprintf("- Failed to resolve %s provider %s: %s", name, constraint, err))
return 1
Expand Down

0 comments on commit 8c6ae66

Please sign in to comment.