Fix change of return type in NeutronAMQPContext.__call__()

A recent change means that a branch returns None for an empty context
when the parent class returns {} for an empty context.  This changes the
return on that branch back to the empty {} returned from the parent.

Change-Id: Ia59c2b2402c1ade94c9b4addc4c7b9b8c1569210
This commit is contained in:
Alex Kavanagh 2019-05-25 17:23:58 +01:00
parent 123f366fc5
commit a82b210c47

View File

@ -854,7 +854,7 @@ class NeutronAMQPContext(context.AMQPContext):
# TODO (dparv) The class to be removed in next charm release
# and from BASE_RESOURCE_MAP neutron_api_utils.py as well
if not context:
return
return context
context['notification_topics'] = ','.join(NOTIFICATION_TOPICS)
return context