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:
parent
6f429cc81b
commit
8003b3408f
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue