From 5d22ccf016b70886c969d8910a8ce42c97580a44 Mon Sep 17 00:00:00 2001 From: Anton Arefiev Date: Fri, 9 Oct 2015 15:39:36 +0300 Subject: Replace deprecated LOG.warn with warning LOG.warn is deprecated. It still used in a few places. This updates those one to use the non-deprecated LOG.warning instead. Closes-Bug: 1508442 Change-Id: Id947e4c8ae9894f480192a5ab034c24c25125788 --- ironic/dhcp/neutron.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ironic/dhcp') diff --git a/ironic/dhcp/neutron.py b/ironic/dhcp/neutron.py index 9dddd3bf2..c6ffb8f96 100644 --- a/ironic/dhcp/neutron.py +++ b/ironic/dhcp/neutron.py @@ -279,10 +279,10 @@ class NeutronDHCPApi(base.BaseDHCP): failures.append(port.uuid) if failures: - LOG.warn(_LW("Some errors were encountered on node %(node)s" - " while retrieving IP address on the following" - " ports: %(ports)s."), - {'node': task.node.uuid, 'ports': failures}) + LOG.warning(_LW("Some errors were encountered on node %(node)s" + " while retrieving IP address on the following" + " ports: %(ports)s."), + {'node': task.node.uuid, 'ports': failures}) return ip_addresses -- cgit v1.2.1