update from review

Reference modules by terraform address
Unquote versions
This commit is contained in:
James Bardin 2017-11-03 10:50:19 -04:00
parent c510473fd2
commit 2ed529f81a
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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