Merge pull request #8398 from hashicorp/b-module-collide

config/module: use source as part of key
This commit is contained in:
Mitchell Hashimoto 2016-08-26 13:27:56 -07:00 committed by GitHub
commit 4e7f2dd01e
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ func (t *Tree) Load(s getter.Storage, mode GetMode) error {
// Get the directory where this module is so we can load it
key := strings.Join(path, ".")
key = "root." + key
key = fmt.Sprintf("root.%s-%s", key, source)
dir, ok, err := getStorage(s, key, source, mode)
if err != nil {
return err