diff options
author | Anton Arefiev <aarefiev@mirantis.com> | 2015-10-09 15:39:36 +0300 |
---|---|---|
committer | Anton Arefiev <aarefiev@mirantis.com> | 2015-10-21 15:22:46 +0300 |
commit | 5d22ccf016b70886c969d8910a8ce42c97580a44 (patch) | |
tree | 0f5ec48665e075130a0e156d3c4ee4193522572d /ironic/dhcp | |
parent | 93f5a12a99fa4f46b1b90338202a6ad9aa27b4f8 (diff) | |
download | ironic-5d22ccf016b70886c969d8910a8ce42c97580a44.tar.gz |
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
Diffstat (limited to 'ironic/dhcp')
-rw-r--r-- | ironic/dhcp/neutron.py | 8 |
1 files changed, 4 insertions, 4 deletions
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 |