diff --git a/helper/schema/field_reader_config.go b/helper/schema/field_reader_config.go index 55a301d81..cf50e23c0 100644 --- a/helper/schema/field_reader_config.go +++ b/helper/schema/field_reader_config.go @@ -93,6 +93,18 @@ func (r *ConfigFieldReader) readField( } } + if protoVersion5 { + // Check if the value itself is unknown. + // The new protocol shims will add unknown values to this list of + // ComputedKeys. THis is the only way we have to indicate that a + // collection is unknown in the config + for _, unknown := range r.Config.ComputedKeys { + if k == unknown { + return FieldReadResult{Computed: true, Exists: true}, nil + } + } + } + switch schema.Type { case TypeBool, TypeFloat, TypeInt, TypeString: return r.readPrimitive(k, schema)