From d216d19f21a70be092dcd2b9c518472b7d4687af Mon Sep 17 00:00:00 2001 From: James Bardin Date: Wed, 6 Sep 2017 13:44:37 -0400 Subject: [PATCH] change the FolderStorage key updating the key will cause the FolderStorage hash to change forcing modules to be re-fetched. This is required because any configurations using the subDir notation will have the configuration in the wrong directory. --- config/module/tree.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/module/tree.go b/config/module/tree.go index f50da2d6d..a4398016a 100644 --- a/config/module/tree.go +++ b/config/module/tree.go @@ -182,7 +182,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 = fmt.Sprintf("root.%s-%s", key, m.Source) + key = fmt.Sprintf("module.%s-%s", key, m.Source) dir, ok, err := getStorage(s, key, source, mode) if err != nil {