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/functional/test_aws_stack.py b/functional/test_aws_stack.py index ba4883f..65f2ae8 100644 --- a/functional/test_aws_stack.py +++ b/functional/test_aws_stack.py
@@ -95,7 +95,7 @@ if key_header not in oc.head_account(): swift_key = hashlib.sha224( str(random.getrandbits(256))).hexdigest()[:32] - LOG.warn('setting swift key to %s' % swift_key) + LOG.warning('setting swift key to %s' % swift_key) oc.post_account({key_header: swift_key}) key = oc.head_account()[key_header] path = '/v1/AUTH_%s/%s/%s' % (self.project_id,