return provisioner Apply errors
EvaApplyProvisioners was not returning errors if there was already a multierror stored in the Error field. Always return the error to the caller.
This commit is contained in:
parent
a1061ed931
commit
b2d111c2bd
|
@ -227,12 +227,9 @@ func (n *EvalApplyProvisioners) Eval(ctx EvalContext) (interface{}, error) {
|
|||
state.Tainted = true
|
||||
}
|
||||
|
||||
if n.Error != nil {
|
||||
*n.Error = multierror.Append(*n.Error, err)
|
||||
} else {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
// Call post hook
|
||||
|
|
Loading…
Reference in New Issue