Merge pull request #27447 from Filirom1/fix-27445

Providers: Fix init with broken link in plugin_cache_dir
This commit is contained in:
Pam Selle 2021-01-22 10:30:55 -05:00 committed by GitHub
commit 084cec6346
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -120,7 +120,8 @@ func SearchLocalDirectory(baseDir string) (map[addrs.Provider]PackageMetaList, e
// filesystem object below.
info, err = os.Stat(fullPath)
if err != nil {
return fmt.Errorf("failed to read metadata about %s: %s", fullPath, err)
log.Printf("[WARN] failed to read metadata about %s: %s", fullPath, err)
return nil
}
switch len(parts) {