terraform: error if subgraph fails to build

This commit is contained in:
Mitchell Hashimoto 2014-09-22 16:51:35 -07:00
parent a6f792b3aa
commit 5565c27fdd
1 changed files with 3 additions and 1 deletions

View File

@ -148,7 +148,9 @@ func Graph(opts *GraphOpts) (*depgraph.Graph, error) {
graphAddConfigResources(g, config, mod)
// Add the modules that are in the configuration.
graphAddConfigModules(g, config, opts)
if err := graphAddConfigModules(g, config, opts); err != nil {
return nil, err
}
// Add explicit dependsOn dependencies to the graph
graphAddExplicitDeps(g)