Replace LOG.warn with LOG.warning

logging.warn is deprecated in Python 3 [1].

[1] https://docs.python.org/3/library/logging.html#logging.warning

Change-Id: I9458a5d01ecb7040ea66115479b61ea8f44db13c
This commit is contained in:
Sergii Golovatiuk 2018-04-04 15:06:17 +02:00
parent 6a016a6214
commit 4d57a749c7
1 changed files with 3 additions and 3 deletions

View File

@ -2158,9 +2158,9 @@ def _config_neutron_segments_and_subnets(sdk, ctlplane_id):
s = CONF.get(CONF.local_subnet)
subnet = _get_subnet(sdk, s.cidr, ctlplane_id)
if subnet and not subnet.segment_id:
LOG.warn("Local subnet %s already exists and is not associated with a "
"network segment. Any additional subnets will be ignored.",
CONF.local_subnet)
LOG.warning("Local subnet %s already exists and is not associated "
"with a network segment. Any additional subnets will "
"be ignored.", CONF.local_subnet)
host_routes = [{'destination': '169.254.169.254/32',
'nexthop': str(netaddr.IPNetwork(CONF.local_ip).ip)}]
allocation_pool = [{'start': s.dhcp_start, 'end': s.dhcp_end}]