return early when comparing Null values
This commit is contained in:
parent
6f4d86094f
commit
78256ae225
|
@ -197,9 +197,11 @@ func assertValueCompatible(planned, actual cty.Value, path cty.Path) []error {
|
|||
return nil
|
||||
}
|
||||
errs = append(errs, path.NewErrorf("was %#v, but now null", planned))
|
||||
return errs
|
||||
}
|
||||
if planned.IsNull() {
|
||||
errs = append(errs, path.NewErrorf("was null, but now %#v", actual))
|
||||
return errs
|
||||
}
|
||||
|
||||
ty := planned.Type()
|
||||
|
|
Loading…
Reference in New Issue