core: Don't panic if "required replace" path doesn't resolve to a value
This commit is contained in:
parent
6acf335e60
commit
7249a73f79
|
@ -214,9 +214,11 @@ func (n *EvalDiff) Eval(ctx EvalContext) (interface{}, error) {
|
||||||
// the same type, but we'll allow it for robustness.
|
// the same type, but we'll allow it for robustness.
|
||||||
reqRep = append(reqRep, path)
|
reqRep = append(reqRep, path)
|
||||||
}
|
}
|
||||||
eqV := plannedChangedVal.Equals(priorChangedVal)
|
if priorChangedVal != cty.NilVal {
|
||||||
if !eqV.IsKnown() || eqV.False() {
|
eqV := plannedChangedVal.Equals(priorChangedVal)
|
||||||
reqRep = append(reqRep, path)
|
if !eqV.IsKnown() || eqV.False() {
|
||||||
|
reqRep = append(reqRep, path)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if diags.HasErrors() {
|
if diags.HasErrors() {
|
||||||
|
|
Loading…
Reference in New Issue