diff --git a/terraform/diff.go b/terraform/diff.go index ae2618316..c8e660ad5 100644 --- a/terraform/diff.go +++ b/terraform/diff.go @@ -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