keep .terraform.d/plugins for discovery

This commit is contained in:
James Bardin 2017-08-09 17:46:49 -04:00
parent 54998933f5
commit 52dbf94834
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@ func globalPluginDirs() []string {
log.Printf("[ERROR] Error finding global config directory: %s", err)
} else {
machineDir := fmt.Sprintf("%s_%s", runtime.GOOS, runtime.GOARCH)
ret = append(ret, filepath.Join(dir, "plugins"))
ret = append(ret, filepath.Join(dir, "plugins", machineDir))
}