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:
parent
480a414c40
commit
2d4f65cc94
|
@ -398,7 +398,7 @@ func (c *Context) Apply() (*State, error) {
|
||||||
Module: c.module,
|
Module: c.module,
|
||||||
Diff: c.diff,
|
Diff: c.diff,
|
||||||
State: c.state,
|
State: c.state,
|
||||||
Providers: c.providersList(),
|
Providers: c.components.ResourceProviders(),
|
||||||
}).Build(RootModulePath)
|
}).Build(RootModulePath)
|
||||||
} else {
|
} else {
|
||||||
newGraph, err = (&ApplyGraphBuilder{
|
newGraph, err = (&ApplyGraphBuilder{
|
||||||
|
@ -438,6 +438,11 @@ func (c *Context) Apply() (*State, error) {
|
||||||
log.Printf("[WARN] terraform: real graph is experiment, shadow is experiment")
|
log.Printf("[WARN] terraform: real graph is experiment, shadow is experiment")
|
||||||
real = shadow
|
real = shadow
|
||||||
} else {
|
} 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")
|
log.Printf("[WARN] terraform: real graph is original, shadow is experiment")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue