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:
Cao Xuan Hoang 2016-09-26 11:39:20 +07:00
parent c07bd76eac
commit c2f7d63d3d
1 changed files with 1 additions and 1 deletions

View File

@ -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)