Don't assume RPC push object has an ID

Test coverage is provided by scenario job. We just
need to get it voting. :)

Closes-Bug: #1718063
Change-Id: I85f638d22206e5621366475009dddd519dfbc476
This commit is contained in:
Kevin Benton 2017-09-15 14:10:34 -07:00
parent 863fb129f9
commit 458d38e2c7
1 changed files with 2 additions and 1 deletions

View File

@ -235,7 +235,8 @@ class ResourcesPushRpcApi(object):
LOG.debug(
"Pushing event %s for resources: %s", event_type,
{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 t in resources_by_type})
for resource_type, type_resources in resources_by_type.items():