Classify output properties as adds too

This commit is contained in:
joeduffy 2017-06-01 08:31:34 -07:00
parent e84c2d9388
commit 23493be8af

View file

@ -183,7 +183,7 @@ func UnmarshalPropertiesInto(ctx *Context, props *structpb.Struct, t PropertyMap
for _, k := range keys {
pk := PropertyKey(k)
v, has := t[pk]
add := !has || v.IsNull()
add := !has || v.IsNull() || v.IsOutput()
UnmarshalPropertyValueInto(ctx, props.Fields[k], &v, opts)
contract.Assert(!v.IsComputed() && !v.IsOutput())
t[pk] = v