terraform: error if subgraph fails to build
This commit is contained in:
parent
a6f792b3aa
commit
5565c27fdd
|
@ -148,7 +148,9 @@ func Graph(opts *GraphOpts) (*depgraph.Graph, error) {
|
||||||
graphAddConfigResources(g, config, mod)
|
graphAddConfigResources(g, config, mod)
|
||||||
|
|
||||||
// Add the modules that are in the configuration.
|
// 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
|
// Add explicit dependsOn dependencies to the graph
|
||||||
graphAddExplicitDeps(g)
|
graphAddExplicitDeps(g)
|
||||||
|
|
Loading…
Reference in New Issue