From 8673c197aad7065db2e7108ffd55d01127f33977 Mon Sep 17 00:00:00 2001 From: Kristin Laemmert Date: Thu, 11 Jun 2020 11:00:41 -0400 Subject: [PATCH] init: fix issue loading local plugin directory --- provider_source.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")) }