Replace deprecated LOG.warn with LOG.warning
LOG.warn is deprecated. It still used in a few places. Updated to non-deprecated LOG.warning. Change-Id: I7e613df8c07616c8cc40a443f3f594407b3555c4 Closes-Bug:#1508442
This commit is contained in:
parent
bb33e1c6ec
commit
7bb75b8dc4
|
@ -141,7 +141,7 @@ class BayClient(client.MagnumClient):
|
|||
else:
|
||||
return False
|
||||
except exceptions.NotFound:
|
||||
self.LOG.warn('Bay %s is not found.' % bay_id)
|
||||
self.LOG.warning('Bay %s is not found.' % bay_id)
|
||||
return False
|
||||
|
||||
def does_bay_exist(self, bay_id):
|
||||
|
@ -158,13 +158,13 @@ class BayClient(client.MagnumClient):
|
|||
else:
|
||||
return False
|
||||
except exceptions.NotFound:
|
||||
self.LOG.warn('Bay %s is not found.' % bay_id)
|
||||
self.LOG.warning('Bay %s is not found.' % bay_id)
|
||||
return False
|
||||
|
||||
def does_bay_not_exist(self, bay_id):
|
||||
try:
|
||||
self.get_bay(bay_id)
|
||||
except exceptions.NotFound:
|
||||
self.LOG.warn('Bay %s is not found.' % bay_id)
|
||||
self.LOG.warning('Bay %s is not found.' % bay_id)
|
||||
return True
|
||||
return False
|
||||
|
|
Loading…
Reference in New Issue