- Moved string formatting to the log instead of call
- Used dict.get() instead of __getitem__(). I assume that was the
author's intent or the subsequent condition in redundant.
Change-Id: If2fa3654591607c01effc12cc1bafea38ac4945d
Signed-off-by: Saggi Mizrahi <saggi.mizrahi@huawei.com>
def _notify_l3_agent_new_port(resource, event, trigger, **kwargs):
- LOG.debug('Received %s %s' % (resource, event))
- port = kwargs['port']
+ LOG.debug('Received %(resource)s %(event)s', {
+ 'resource': resource,
+ 'event': event})
+ port = kwargs.get('port')
if not port:
return