don't convert empty DynamicValue to nil

pull/19726/head
James Bardin 7 years ago
parent 2c17558446
commit a915f3f13e

@ -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
}

Loading…
Cancel
Save