mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
missing prefix in recounted map
Missing prefix in map recount. This generally passes tests since the actual count should already be there and be correct, then ethe extra key is ignored by the shims.
This commit is contained in:
parent
b492c3662c
commit
9b30da500d
@ -554,12 +554,10 @@ func (d *InstanceDiff) blockDiff(path []string, attrs map[string]string, schema
|
||||
}
|
||||
|
||||
// this must be a diff to keep
|
||||
|
||||
keep = true
|
||||
break
|
||||
}
|
||||
if !keep {
|
||||
|
||||
delete(candidateKeys, k)
|
||||
}
|
||||
}
|
||||
@ -772,7 +770,7 @@ func (d *InstanceDiff) applyCollectionDiff(path []string, attrs map[string]strin
|
||||
|
||||
// Don't trust helper/schema to return a valid count, or even have one at
|
||||
// all.
|
||||
result[idx] = countFlatmapContainerValues(name+"."+idx, result)
|
||||
result[name+"."+idx] = countFlatmapContainerValues(name+"."+idx, result)
|
||||
return result, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user