From a915f3f13e0e5b3f1416e3355afd152efa3ec18d Mon Sep 17 00:00:00 2001 From: James Bardin Date: Thu, 20 Dec 2018 10:28:26 -0500 Subject: [PATCH] don't convert empty DynamicValue to nil --- plans/dynamic_value.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plans/dynamic_value.go b/plans/dynamic_value.go index 91c1215b8..51fbb24cf 100644 --- a/plans/dynamic_value.go +++ b/plans/dynamic_value.go @@ -86,7 +86,7 @@ func (v DynamicValue) ImpliedType() (cty.Type, error) { // Copy produces a copy of the receiver with a distinct backing array. func (v DynamicValue) Copy() DynamicValue { - if len(v) == 0 { + if v == nil { return nil }