fedbd6c3b8
cty.Value.AsValueMap can return nil if called on an empty map or object. The logic above was dealing with that case for maps, but object types were falling through into this codepath and panicking when trying to assign a new key into the nil dstMap. This also includes a bonus fix where we were calling ty.ElementType in a switch case that accepts object types. Object types don't have a single element type, so we can't call ElementType on those (that also panics) but we _can_ use the type of the value we selected from src to construct our placeholder null value. |
||
---|---|---|
.. | ||
doc.go | ||
grpc_provider.go | ||
grpc_provider_test.go | ||
grpc_provisioner.go | ||
grpc_provisioner_test.go | ||
unknown.go | ||
unknown_test.go |