terraform-bundle: fix panic with addrs.Provider

Fixes #23652
This commit is contained in:
Kristin Laemmert 2019-12-12 09:14:12 -05:00
parent 49fc53d1d1
commit 8c6ae66494
1 changed files with 1 additions and 1 deletions

View File

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