mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-20 11:48:24 -06:00
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
|
||||
}
|
||||
|
||||
if n.Error != nil {
|
||||
*n.Error = multierror.Append(*n.Error, err)
|
||||
} else {
|
||||
return nil, err
|
||||
}
|
||||
*n.Error = multierror.Append(*n.Error, err)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user