From 2ed529f81a831acf07606ada2d7d4ec2ce2af7c6 Mon Sep 17 00:00:00 2001 From: James Bardin Date: Fri, 3 Nov 2017 10:50:19 -0400 Subject: [PATCH] update from review Reference modules by terraform address Unquote versions --- config/module/storage.go | 2 +- config/module/tree.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/config/module/storage.go b/config/module/storage.go index 381650ea8..05065b3c6 100644 --- a/config/module/storage.go +++ b/config/module/storage.go @@ -343,7 +343,7 @@ func (s Storage) findRegistryModule(mSource, constraint string) (moduleRecord, e return rec, err } - s.output(fmt.Sprintf(" Found version %q of %s on %s", rec.Version, mod.Module(), mod.RawHost.Display())) + s.output(fmt.Sprintf(" Found version %s of %s on %s", rec.Version, mod.Module(), mod.RawHost.Display())) } return rec, nil diff --git a/config/module/tree.go b/config/module/tree.go index 0daabfd6a..c649a4663 100644 --- a/config/module/tree.go +++ b/config/module/tree.go @@ -5,7 +5,6 @@ import ( "bytes" "fmt" "log" - "path" "path/filepath" "strings" "sync" @@ -216,7 +215,7 @@ func (t *Tree) getChildren(s *Storage) (map[string]*Tree, error) { // add the module path to help indicate where modules with relative // paths are being loaded from - s.output(fmt.Sprintf("- Module %q", path.Join(modPath...))) + s.output(fmt.Sprintf("- module.%s", strings.Join(modPath, "."))) // Lookup the local location of the module. // dir is the local directory where the module is stored