summaryrefslogtreecommitdiff
path: root/keystoneclient/client.py
diff options
context:
space:
mode:
authorLin Hua Cheng <lin-hua.cheng@hp.com>2013-02-05 11:17:53 -0800
committerLin Hua Cheng <lin-hua.cheng@hp.com>2013-02-05 11:30:27 -0800
commit382441a9f18c583c071bf69d25cd44f5ec3555bb (patch)
treec57cc31fa8d54cc3f9f667bbfb753468f0fd1cbd /keystoneclient/client.py
parent76c7b08645315db4ec16f1703848b51001511121 (diff)
downloadpython-keystoneclient-382441a9f18c583c071bf69d25cd44f5ec3555bb.tar.gz
Treat HTTP code 400 and above as error.
Fixes bug 1116559. Change-Id: I4b12176599686f7e545b63c8e54cf9da6a1f963e
Diffstat (limited to 'keystoneclient/client.py')
-rw-r--r--keystoneclient/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/keystoneclient/client.py b/keystoneclient/client.py
index 77e8b3c..0233aeb 100644
--- a/keystoneclient/client.py
+++ b/keystoneclient/client.py
@@ -341,7 +341,7 @@ class HTTPClient(object):
self.http_log_resp(resp)
- if resp.status_code in (400, 401, 403, 404, 408, 409, 413, 500, 501):
+ if resp.status_code >= 400:
_logger.debug(
"Request returned failure status: %s",
resp.status_code)