diff --git a/config/hcl2shim/values.go b/config/hcl2shim/values.go index 0b697a5f5..956c15dee 100644 --- a/config/hcl2shim/values.go +++ b/config/hcl2shim/values.go @@ -73,7 +73,10 @@ func ConfigValueFromHCL2(v cty.Value) interface{} { it := v.ElementIterator() for it.Next() { ek, ev := it.Element() - l[ek.AsString()] = ConfigValueFromHCL2(ev) + cv := ConfigValueFromHCL2(ev) + if cv != nil { + l[ek.AsString()] = cv + } } return l }