commit | c7e36ede989f28b0fa03bb9793581570e084b003 | [log] [tgz] |
---|---|---|
author | LiuNanke <nanke.liu@easystack.cn> | Tue Dec 29 12:54:49 2015 +0800 |
committer | LiuNanke <nanke.liu@easystack.cn> | Tue Dec 29 09:32:42 2015 +0000 |
tree | 6efd36f5ee0d51bf1944f9bbab26f2a173679247 | |
parent | 6b378ab1885ef5e1e8cb05fd20482b72c9d029b8 [diff] [blame] |
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/scenario/test_ceilometer_alarm.py b/scenario/test_ceilometer_alarm.py index e0523aa..aa29861 100644 --- a/scenario/test_ceilometer_alarm.py +++ b/scenario/test_ceilometer_alarm.py
@@ -30,8 +30,8 @@ stack = self.client.stacks.get(stack_identifier) actual = self._stack_output(stack, 'asg_size') if actual != expected: - LOG.warn('check_instance_count exp:%d, act:%s' % (expected, - actual)) + LOG.warning('check_instance_count exp:%d, act:%s' % (expected, + actual)) return actual == expected def test_alarm(self):