Merge pull request #8398 from hashicorp/b-module-collide
config/module: use source as part of key
This commit is contained in:
commit
4e7f2dd01e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue