terraform: enable provisioners to execute

This commit is contained in:
Mitchell Hashimoto 2016-09-15 09:33:08 -07:00
parent 0f0eecfee7
commit 5220cba77c
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
1 changed files with 8 additions and 11 deletions

View File

@ -216,17 +216,14 @@ func (n *NodeApplyableResource) EvalTree() EvalNode {
Dependencies: stateDeps, Dependencies: stateDeps,
State: &state, State: &state,
}, },
/* &EvalApplyProvisioners{
TODO: this has to work Info: info,
&EvalApplyProvisioners{ State: &state,
Info: info, Resource: n.Config,
State: &state, InterpResource: resource,
Resource: n.Config, CreateNew: &createNew,
InterpResource: resource, Error: &err,
CreateNew: &createNew, },
Error: &err,
},
*/
&EvalIf{ &EvalIf{
If: func(ctx EvalContext) (bool, error) { If: func(ctx EvalContext) (bool, error) {
return createBeforeDestroyEnabled && err != nil, nil return createBeforeDestroyEnabled && err != nil, nil