Merge "Don't assume RPC push object has an ID"
This commit is contained in:
commit
9f86f9936d
@ -235,7 +235,8 @@ class ResourcesPushRpcApi(object):
|
|||||||
LOG.debug(
|
LOG.debug(
|
||||||
"Pushing event %s for resources: %s", event_type,
|
"Pushing event %s for resources: %s", event_type,
|
||||||
{t: ["ID=%s,revision_number=%s" % (
|
{t: ["ID=%s,revision_number=%s" % (
|
||||||
obj.id, getattr(obj, 'revision_number', None))
|
getattr(obj, 'id', None),
|
||||||
|
getattr(obj, 'revision_number', None))
|
||||||
for obj in resources_by_type[t]]
|
for obj in resources_by_type[t]]
|
||||||
for t in resources_by_type})
|
for t in resources_by_type})
|
||||||
for resource_type, type_resources in resources_by_type.items():
|
for resource_type, type_resources in resources_by_type.items():
|
||||||
|
Loading…
Reference in New Issue
Block a user