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:
parent
3596172ee6
commit
529f3012a5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue