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:
James Bardin 2019-01-23 14:57:04 -05:00
parent b492c3662c
commit 9b30da500d

View File

@ -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
}