Use LOG.warning instead of deprecated LOG.warn

The LOG.warn method is deprecated[1] and the LOG.warning method should
be used instead.

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

Change-Id: I7e721580693a2d81b415a8ae0eb1963456d0195a
This commit is contained in:
Takashi Kajinami 2022-01-28 01:15:39 +09:00
parent 3eb84784c6
commit 7e145f5624
1 changed files with 1 additions and 1 deletions

View File

@ -286,7 +286,7 @@ class RestoreOs(object):
except Exception as e: except Exception as e:
LOG.exception(e) LOG.exception(e)
if volume.status != "error": if volume.status != "error":
LOG.warn("Exception getting volume status") LOG.warning("Exception getting volume status")
LOG.info("Deleting temporary image {}".format(image.id)) LOG.info("Deleting temporary image {}".format(image.id))
self.client_manager.get_glance().images.delete(image.id) self.client_manager.get_glance().images.delete(image.id)