terraform: update comment

This commit is contained in:
Mitchell Hashimoto 2015-05-04 10:49:34 -07:00
parent cc0c208364
commit 2f3f680505
1 changed files with 3 additions and 3 deletions

View File

@ -165,9 +165,9 @@ func (n *graphNodeModuleExpanded) FlattenGraph() *Graph {
graph := n.Subgraph() graph := n.Subgraph()
input := n.Original.Module.RawConfig input := n.Original.Module.RawConfig
// Go over each vertex in the graph and wrap the configuration // Go over each vertex and do some modifications to the graph for
// items so that the dependencies properly map to the modules. // flattening. We have to skip some nodes (graphNodeModuleSkippable)
// See the docs for graphNodeModuleWrappable for more info. // as well as setup the variable values.
for _, v := range graph.Vertices() { for _, v := range graph.Vertices() {
if sn, ok := v.(graphNodeModuleSkippable); ok && sn.FlattenSkip() { if sn, ok := v.(graphNodeModuleSkippable); ok && sn.FlattenSkip() {
graph.Remove(v) graph.Remove(v)