Skip to content

Commit fd76846

Browse files
committed
two more locations where Attribute.Type was used
1 parent 43100fb commit fd76846

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/plans/objchange/objchange.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,10 +499,10 @@ func setElementCompareValue(schema *configschema.Block, v cty.Value, isConfig bo
499499
if isConfig {
500500
attrs[name] = v.GetAttr(name)
501501
} else {
502-
attrs[name] = cty.NullVal(attr.Type)
502+
attrs[name] = cty.NullVal(attr.ImpliedType())
503503
}
504504
case attr.Computed:
505-
attrs[name] = cty.NullVal(attr.Type)
505+
attrs[name] = cty.NullVal(attr.ImpliedType())
506506
default:
507507
attrs[name] = v.GetAttr(name)
508508
}

0 commit comments

Comments
 (0)