terraform: add TargetsTransformer to plan

pull/9973/head
Mitchell Hashimoto 10 years ago
parent a2d71388c2
commit f95f904ba8
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A

@ -519,6 +519,7 @@ func (c *Context) Plan() (*Plan, error) {
Module: c.module,
State: c.state,
Providers: c.components.ResourceProviders(),
Targets: c.targets,
}).Build(RootModulePath)
}
if err != nil && !newGraphEnabled {

@ -26,6 +26,9 @@ type PlanGraphBuilder struct {
// Providers is the list of providers supported.
Providers []string
// Targets are resources to target
Targets []string
// DisableReduce, if true, will not reduce the graph. Great for testing.
DisableReduce bool
}
@ -78,6 +81,9 @@ func (b *PlanGraphBuilder) Steps() []GraphTransformer {
Module: b.Module,
},
// Target
&TargetsTransformer{Targets: b.Targets},
// Attach the configuration to any resources
&AttachResourceConfigTransformer{Module: b.Module},

Loading…
Cancel
Save