Using LOG.warning replace LOG.warn
*Python 3 deprecated the logger.warn method, see:
*https://docs.python.org/3/library/logging.html#logging.warning
*so we prefer to use warning to avoid DeprecationWarning.
Change-Id: I07ee9c97c3548c965aaf83d34b37b23e9baba584
diff --git a/functional/test_autoscaling.py b/functional/test_autoscaling.py
index df8c54b..e702a28 100644
--- a/functional/test_autoscaling.py
+++ b/functional/test_autoscaling.py
@@ -631,16 +631,16 @@
md = self.client.resources.metadata(stack_identifier, 'custom_lb')
actual_md = len(md['IPs'].split(','))
if actual_md != expected:
- LOG.warn('check_instance_count exp:%d, meta:%s' % (expected,
- md['IPs']))
+ LOG.warning('check_instance_count exp:%d, meta:%s' % (expected,
+ md['IPs']))
return False
stack = self.client.stacks.get(stack_identifier)
inst_list = self._stack_output(stack, 'InstanceList')
actual = len(inst_list.split(','))
if actual != expected:
- LOG.warn('check_instance_count exp:%d, act:%s' % (expected,
- inst_list))
+ LOG.warning('check_instance_count exp:%d, act:%s' % (expected,
+ inst_list))
return actual == expected
def test_scaling_meta_update(self):