Used warning instead of warn
To be compatible with python 3, use LOG.warning instead of warn. Change-Id: If8e93b79824f565152ab7366d39313026b2daf50
This commit is contained in:
parent
532e670fc8
commit
c760363d83
@ -206,7 +206,7 @@ class NSXV3Client(object):
|
||||
nsx_resource = [n for n in nsx_resources if
|
||||
n['display_name'] == nsx_name]
|
||||
if len(nsx_resource) == 0:
|
||||
LOG.warn(_LW("Backend nsx resource %s NOT found!"), nsx_name)
|
||||
LOG.warning(_LW("Backend nsx resource %s NOT found!"), nsx_name)
|
||||
return None
|
||||
if len(nsx_resource) > 1:
|
||||
LOG.error(_LE("More than 1 nsx resources found: %s!"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user