terraform: disable shadowing destroy graph for now

It doesn't fully work so we want to wait until we think its ready before
we start the shadowing.
This commit is contained in:
Mitchell Hashimoto 2016-10-20 10:46:32 -07:00
parent 480a414c40
commit 2d4f65cc94
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
1 changed files with 6 additions and 1 deletions

View File

@ -398,7 +398,7 @@ func (c *Context) Apply() (*State, error) {
Module: c.module,
Diff: c.diff,
State: c.state,
Providers: c.providersList(),
Providers: c.components.ResourceProviders(),
}).Build(RootModulePath)
} else {
newGraph, err = (&ApplyGraphBuilder{
@ -438,6 +438,11 @@ func (c *Context) Apply() (*State, error) {
log.Printf("[WARN] terraform: real graph is experiment, shadow is experiment")
real = shadow
} else {
// TODO: remove before branch is done, we're just not ready for this yet
if c.destroy {
shadow = nil
}
log.Printf("[WARN] terraform: real graph is original, shadow is experiment")
}