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:
Swapnil Kulkarni (coolsvap) 2016-03-11 13:06:48 +05:30
parent 7b1c040716
commit ac09df92a7
1 changed files with 3 additions and 3 deletions

View File

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