diff options
| author | Wanlong Gao <wanlong.gao@easystack.cn> | 2015-12-29 14:37:10 +0800 |
|---|---|---|
| committer | Wanlong Gao <wanlong.gao@easystack.cn> | 2015-12-29 14:40:01 +0800 |
| commit | 2fde87a0e91689aaf3c918209f1ee8a1d832d6f3 (patch) | |
| tree | e6a827c60d1188d158ad92e9bb1c8018e19e18b1 /tests | |
| parent | a5a5b3fd61884773a4046526be255ba24bfdc9de (diff) | |
| download | kolla-2fde87a0e91689aaf3c918209f1ee8a1d832d6f3.tar.gz kolla-2fde87a0e91689aaf3c918209f1ee8a1d832d6f3.zip | |
Python 3 deprecated the logger.warn method in favor of warning
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: Ic4e07276def17ef39764601c8a7e0991f9a4efbc
Closes-Bug: 1508442
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/clients.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/clients.py b/tests/clients.py index 6b2aef528..a845579b1 100644 --- a/tests/clients.py +++ b/tests/clients.py @@ -37,7 +37,7 @@ class OpenStackClients(object): return connected_client except StopIteration: - LOG.warn("Requested client %s not found", name) + LOG.warning("Requested client %s not found", name) raise def create(self): |
