mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 18:01:01 -06:00
remove unused value
This commit is contained in:
parent
db968733da
commit
e4270993be
@ -595,19 +595,11 @@ func (d *InstanceDiff) applyCollectionDiff(attrName string, oldAttrs map[string]
|
||||
idx = attrName + ".%"
|
||||
}
|
||||
|
||||
// record if we got the index from the diff
|
||||
setIndex := false
|
||||
|
||||
for k := range keys {
|
||||
if !strings.HasPrefix(k, attrName+".") {
|
||||
continue
|
||||
}
|
||||
|
||||
// we need to verify if we saw the index later
|
||||
if k == idx {
|
||||
setIndex = true
|
||||
}
|
||||
|
||||
res, err := d.applyAttrDiff(k, oldAttrs, attrSchema)
|
||||
if err != nil {
|
||||
return result, err
|
||||
|
Loading…
Reference in New Issue
Block a user