init: fix issue loading local plugin directory

This commit is contained in:
Kristin Laemmert 2020-06-11 11:00:41 -04:00
parent 06344e4540
commit 8673c197aa
1 changed files with 1 additions and 1 deletions

View File

@ -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"))
}