summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-02-19 22:56:57 +0000
committerGerrit Code Review <review@openstack.org>2016-02-19 22:56:57 +0000
commit4e2761d6b9a31228780a6bef898cfb0684ed39f8 (patch)
treefab8de3ab464a9d404f23755ea461dc423b055a7
parenta89384c20a95b653d9b10203ddc17d8c007ceb9c (diff)
parent55a97ea2675bb572c90a1c5be5039540221e1745 (diff)
downloadpython-novaclient-4e2761d6b9a31228780a6bef898cfb0684ed39f8.tar.gz
Merge "[microversions] Turn off check for header in response"
-rw-r--r--novaclient/client.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/novaclient/client.py b/novaclient/client.py
index 00381524..bd1faf7a 100644
--- a/novaclient/client.py
+++ b/novaclient/client.py
@@ -87,7 +87,9 @@ class SessionClient(adapter.LegacyJsonAdapter):
method,
raise_exc=False,
**kwargs)
- api_versions.check_headers(resp, self.api_version)
+ # TODO(andreykurilin): uncomment this line, when we will be able to
+ # check only nova-related calls
+ # api_versions.check_headers(resp, self.api_version)
if raise_exc and resp.status_code >= 400:
raise exceptions.from_response(resp, body, url, method)
@@ -365,7 +367,9 @@ class HTTPClient(object):
url,
**kwargs)
- api_versions.check_headers(resp, self.api_version)
+ # TODO(andreykurilin): uncomment this line, when we will be able to
+ # check only nova-related calls
+ # api_versions.check_headers(resp, self.api_version)
self.http_log_resp(resp)