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: Ibe8223bc358f5806f56c44ee6bd045294d3afd8d
This commit is contained in:
Cao Xuan Hoang 2016-09-27 16:57:28 +07:00
parent 3596172ee6
commit 529f3012a5
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ class OpenStack_Driver(abstract_vim_driver.VimAbstractDriver,
try:
regions_list = self._find_regions(ks_client)
except (exceptions.Unauthorized, exceptions.BadRequest) as e:
LOG.warn(_("Authorization failed for user"))
LOG.warning(_("Authorization failed for user"))
raise nfvo.VimUnauthorizedException(message=e.message)
vim_obj['placement_attr'] = {'regions': regions_list}
return vim_obj