From 458d38e2c73f49d2b137a8092b72c0ad9c69756b Mon Sep 17 00:00:00 2001 From: Kevin Benton Date: Fri, 15 Sep 2017 14:10:34 -0700 Subject: [PATCH] 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 --- neutron/api/rpc/handlers/resources_rpc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neutron/api/rpc/handlers/resources_rpc.py b/neutron/api/rpc/handlers/resources_rpc.py index 2c191e16954..8bc4c22e46b 100644 --- a/neutron/api/rpc/handlers/resources_rpc.py +++ b/neutron/api/rpc/handlers/resources_rpc.py @@ -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():