diff --git a/tools/terraform-bundle/package.go b/tools/terraform-bundle/package.go index c676b30da..9ad41c74e 100644 --- a/tools/terraform-bundle/package.go +++ b/tools/terraform-bundle/package.go @@ -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