Merge pull request #22146 from hashicorp/jbardin/get-panic

missing error check in discovery
This commit is contained in:
James Bardin 2019-07-19 16:28:47 -04:00 committed by GitHub
commit a0b0c29ad2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -204,6 +204,9 @@ func (i *ProviderInstaller) Get(provider string, req Constraints) (PluginMeta, t
}
downloadURLs, err := i.listProviderDownloadURLs(providerSource, versionMeta.Version)
if err != nil {
return PluginMeta{}, diags, err
}
providerURL := downloadURLs.DownloadURL
if !i.SkipVerify {