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/drivers/utils.py | |
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/drivers/utils.py')
-rw-r--r-- | ironic/drivers/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ironic/drivers/utils.py b/ironic/drivers/utils.py index ef16b2aa3..0b3082c7a 100644 --- a/ironic/drivers/utils.py +++ b/ironic/drivers/utils.py @@ -143,8 +143,8 @@ def get_node_capability(node, capability): if parts[0].strip() == capability: return parts[1].strip() else: - LOG.warn(_LW("Ignoring malformed capability '%s'. " - "Format should be 'key:val'."), node_capability) + LOG.warning(_LW("Ignoring malformed capability '%s'. " + "Format should be 'key:val'."), node_capability) def add_node_capability(task, capability, value): |