Merge "Don't assume RPC push object has an ID"

Jenkins 2017-09-19 10:42:21 +00:00 committed by Gerrit Code Review
commit 9f86f9936d
1 changed files with 2 additions and 1 deletions

View File

@ -235,7 +235,8 @@ class ResourcesPushRpcApi(object):
"Pushing event %s for resources: %s", event_type,
{t: ["ID=%s,revision_number=%s" % (, 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():