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 }