helper/resource: don't assign to nil map

pull/17/head
Mitchell Hashimoto 12 years ago
parent bdc2a53c9d
commit f1d782031b

@ -50,6 +50,10 @@ func (m *Map) Apply(
result, err = r.Update(s, d, meta)
}
if result != nil {
if result.Attributes == nil {
result.Attributes = make(map[string]string)
}
result.Attributes["id"] = result.ID
}

Loading…
Cancel
Save