terraform: enable provisioners to execute
This commit is contained in:
parent
0f0eecfee7
commit
5220cba77c
|
@ -216,17 +216,14 @@ func (n *NodeApplyableResource) EvalTree() EvalNode {
|
|||
Dependencies: stateDeps,
|
||||
State: &state,
|
||||
},
|
||||
/*
|
||||
TODO: this has to work
|
||||
&EvalApplyProvisioners{
|
||||
Info: info,
|
||||
State: &state,
|
||||
Resource: n.Config,
|
||||
InterpResource: resource,
|
||||
CreateNew: &createNew,
|
||||
Error: &err,
|
||||
},
|
||||
*/
|
||||
&EvalApplyProvisioners{
|
||||
Info: info,
|
||||
State: &state,
|
||||
Resource: n.Config,
|
||||
InterpResource: resource,
|
||||
CreateNew: &createNew,
|
||||
Error: &err,
|
||||
},
|
||||
&EvalIf{
|
||||
If: func(ctx EvalContext) (bool, error) {
|
||||
return createBeforeDestroyEnabled && err != nil, nil
|
||||
|
|
Loading…
Reference in New Issue