diff --git a/provider_source.go b/provider_source.go index b65dbf439..bb06c0872 100644 --- a/provider_source.go +++ b/provider_source.go @@ -142,7 +142,7 @@ func implicitProviderSource(services *disco.Disco) getproviders.Source { addLocalDir("terraform.d/plugins") // our "vendor" directory cliConfigDir, err := cliconfig.ConfigDir() - if err != nil { + if err == nil { addLocalDir(filepath.Join(cliConfigDir, "plugins")) }