helper/resource: don't assign to nil map
This commit is contained in:
parent
bdc2a53c9d
commit
f1d782031b
|
@ -50,6 +50,10 @@ func (m *Map) Apply(
|
||||||
result, err = r.Update(s, d, meta)
|
result, err = r.Update(s, d, meta)
|
||||||
}
|
}
|
||||||
if result != nil {
|
if result != nil {
|
||||||
|
if result.Attributes == nil {
|
||||||
|
result.Attributes = make(map[string]string)
|
||||||
|
}
|
||||||
|
|
||||||
result.Attributes["id"] = result.ID
|
result.Attributes["id"] = result.ID
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue