missing error check in discovery

This commit is contained in:
James Bardin 2019-07-19 15:20:50 -04:00
parent b117457c6a
commit 666838f309
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) downloadURLs, err := i.listProviderDownloadURLs(providerSource, versionMeta.Version)
if err != nil {
return PluginMeta{}, diags, err
}
providerURL := downloadURLs.DownloadURL providerURL := downloadURLs.DownloadURL
if !i.SkipVerify { if !i.SkipVerify {