revert the change that broke the test case
This reverts one of the changes from 6a4f7b0
, which broke empty strings
being seen as unset for computed values.
This breaks a number of other tests, and is only an intermediate change
for evaluating other solutions.
This commit is contained in:
parent
7a8a443994
commit
643ef4334f
|
@ -337,6 +337,12 @@ func (s *Schema) finalizeDiff(
|
||||||
return d
|
return d
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if s.Computed && d.NewComputed && d.Old != "" && d.New == "" {
|
||||||
|
// old case where we pretended that a NewComputed value of "" on a
|
||||||
|
// Computed field was unset
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
if s.Computed && !d.NewComputed {
|
if s.Computed && !d.NewComputed {
|
||||||
if d.Old != "" && d.New == "" {
|
if d.Old != "" && d.New == "" {
|
||||||
// This is a computed value with an old value set already,
|
// This is a computed value with an old value set already,
|
||||||
|
|
Loading…
Reference in New Issue