Merge pull request #1514 from hashicorp/f-dead-evaltree-cbd-code
core: remove dead code from pre-deposed refactor
This commit is contained in:
commit
d49933b0f8
|
@ -560,19 +560,9 @@ func (n *graphNodeExpandedResourceDestroy) EvalTree() EvalNode {
|
||||||
Name: n.ProvidedBy()[0],
|
Name: n.ProvidedBy()[0],
|
||||||
Output: &provider,
|
Output: &provider,
|
||||||
},
|
},
|
||||||
&EvalIf{
|
&EvalReadState{
|
||||||
If: func(ctx EvalContext) (bool, error) {
|
Name: n.stateId(),
|
||||||
return n.Resource.Lifecycle.CreateBeforeDestroy, nil
|
Output: &state,
|
||||||
},
|
|
||||||
Then: &EvalReadStateTainted{
|
|
||||||
Name: n.stateId(),
|
|
||||||
Output: &state,
|
|
||||||
Index: -1,
|
|
||||||
},
|
|
||||||
Else: &EvalReadState{
|
|
||||||
Name: n.stateId(),
|
|
||||||
Output: &state,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
&EvalRequireState{
|
&EvalRequireState{
|
||||||
State: &state,
|
State: &state,
|
||||||
|
|
Loading…
Reference in New Issue