From dcdb06d812e1eee1506aa7e99d0182bc41e21b82 Mon Sep 17 00:00:00 2001 From: Kan Date: Tue, 5 Jan 2016 05:36:34 +0000 Subject: [PATCH] Replace deprecated LOG.warn with LOG.warning Change-Id: I0ca31eac70afaccda73e7819c582af0b226b8442 Closes-Bug: #1508442 --- ironic_python_agent/extensions/iscsi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ironic_python_agent/extensions/iscsi.py b/ironic_python_agent/extensions/iscsi.py index 2e38cd1bf..c70c40f7b 100644 --- a/ironic_python_agent/extensions/iscsi.py +++ b/ironic_python_agent/extensions/iscsi.py @@ -149,8 +149,8 @@ class ISCSIExtension(base.BaseAgentExtension): try: rts_root = rtslib_fb.RTSRoot() except (EnvironmentError, rtslib_fb.RTSLibError) as exc: - LOG.warn('Linux-IO is not available, falling back to TGT. ' - 'Error: %s.', exc) + LOG.warning('Linux-IO is not available, falling back to TGT. ' + 'Error: %s.', exc) rts_root = None if rts_root is None: