states: Fix incorrect ResourceInstanceObjectSrc.DeepCopy

Accidental shadowing of the top-level attrsFlat variable meant that the
flatmap portion of these objects was getting lost in the DeepCopy result.
This commit is contained in:
Martin Atkins 2018-09-07 08:50:29 -07:00
parent 6f429cc81b
commit 8003b3408f
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ func (obj *ResourceInstanceObjectSrc) DeepCopy() *ResourceInstanceObjectSrc {
var attrsFlat map[string]string
if obj.AttrsFlat != nil {
attrsFlat := make(map[string]string, len(obj.AttrsFlat))
attrsFlat = make(map[string]string, len(obj.AttrsFlat))
for k, v := range obj.AttrsFlat {
attrsFlat[k] = v
}