summaryrefslogtreecommitdiff
path: root/heatclient/common
diff options
context:
space:
mode:
authorzhangguoqing <zhang.guoqing@99cloud.net>2016-01-04 05:25:40 +0000
committerzhangguoqing <zhang.guoqing@99cloud.net>2016-01-04 05:25:40 +0000
commitb65817fa43fa12dc7dbade45c7954714e7179860 (patch)
treea09b99d82e4dc6e75c25914f0b1177d7636137e2 /heatclient/common
parent3eb8c2403a3668e9a4ffb5309d9a079e80bee788 (diff)
downloadpython-heatclient-b65817fa43fa12dc7dbade45c7954714e7179860.tar.gz
Change LOG.warn to LOG.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: Id0c5d67a763121c3245316955c4901a0dbea73ad Closes-Bug: #1530742
Diffstat (limited to 'heatclient/common')
-rw-r--r--heatclient/common/http.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/heatclient/common/http.py b/heatclient/common/http.py
index 1fbcdcd..86bcc2c 100644
--- a/heatclient/common/http.py
+++ b/heatclient/common/http.py
@@ -54,7 +54,7 @@ def get_system_ca_file():
if os.path.exists(ca):
LOG.debug("Using ca file %s", ca)
return ca
- LOG.warn(_LW("System ca file could not be found."))
+ LOG.warning(_LW("System ca file could not be found."))
class HTTPClient(object):