config/module: use source as part of key

This commit is contained in:
Mitchell Hashimoto 2016-08-22 14:07:28 -07:00
parent 03bdf1375e
commit 92336281a5
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
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