Fix LOG.warn to LOG.warning
logging.warn is deprecated in Python 3. https://docs.python.org/3/library/logging.html#logging.warning Change-Id: I8a96c2b8c95076b465d1cd9fc068c46e3fadfb8c
This commit is contained in:
parent
c07bd76eac
commit
c2f7d63d3d
|
@ -1180,7 +1180,7 @@ class PlatformServicesBaseClass(NovaNetworkScenarioTest):
|
||||||
try:
|
try:
|
||||||
delete_method()
|
delete_method()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
LOG.warn(exc.message)
|
LOG.warning(exc.message)
|
||||||
return
|
return
|
||||||
if get_method:
|
if get_method:
|
||||||
self._wait_for_deletion(get_method, timeout, sleep)
|
self._wait_for_deletion(get_method, timeout, sleep)
|
||||||
|
|
Loading…
Reference in New Issue