From 23493be8afb1fb37cede49849472063153ef14eb Mon Sep 17 00:00:00 2001 From: joeduffy Date: Thu, 1 Jun 2017 08:31:34 -0700 Subject: [PATCH] Classify output properties as adds too --- pkg/resource/rpc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/resource/rpc.go b/pkg/resource/rpc.go index 6a0c3dbb3..83b959221 100644 --- a/pkg/resource/rpc.go +++ b/pkg/resource/rpc.go @@ -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