diff --git a/helper/schema/field_reader_config.go b/helper/schema/field_reader_config.go index cd4a993a35..0b0db6f9e9 100644 --- a/helper/schema/field_reader_config.go +++ b/helper/schema/field_reader_config.go @@ -42,6 +42,11 @@ func (r *ConfigFieldReader) readField( // the address with the real list index. i.e. set.50 might actually // map to set.12 in the config, since it is in list order in the // config, not indexed by set value. + + updatedAddress := make([]string, len(address)) + copy(updatedAddress, address) + address = updatedAddress + for i, v := range schemaList { // Sets are the only thing that cause this issue. if v.Type != TypeSet {