init: fix issue loading local plugin directory
This commit is contained in:
parent
06344e4540
commit
8673c197aa
|
@ -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"))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue