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:
parent
3eb84784c6
commit
7e145f5624
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue