Merge "Fix reference before assignment error in the dhcp_rpc module"

This commit is contained in:
Zuul 2022-01-28 15:15:55 +00:00 committed by Gerrit Code Review
commit 6bd3c37ea4

View File

@ -182,12 +182,12 @@ class DhcpRpcCallback(object):
"""
enable_dhcp = kwargs.get('enable_dhcp', True)
network = kwargs.get('network')
host = kwargs.get('host')
plugin = directory.get_plugin()
if network:
ports = kwargs['ports']
else:
network_id = kwargs.get('network_id')
host = kwargs.get('host')
LOG.debug('Network %(network_id)s requested from '
'%(host)s', {'network_id': network_id,
'host': host})