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,11 +227,8 @@ func (n *EvalApplyProvisioners) Eval(ctx EvalContext) (interface{}, error) {
|
||||||
state.Tainted = true
|
state.Tainted = true
|
||||||
}
|
}
|
||||||
|
|
||||||
if n.Error != nil {
|
*n.Error = multierror.Append(*n.Error, err)
|
||||||
*n.Error = multierror.Append(*n.Error, err)
|
return nil, err
|
||||||
} else {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue