summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Kurilin <akurilin@mirantis.com>2016-02-16 16:54:07 +0200
committerAndrey Kurilin <akurilin@mirantis.com>2016-02-16 16:54:07 +0200
commit55a97ea2675bb572c90a1c5be5039540221e1745 (patch)
tree3b9956c9ab02442641982875d8bfff111cb14ae1
parent99c588e28c2c4eb0b684cfd54d79d76fc30197fe (diff)
downloadpython-novaclient-55a97ea2675bb572c90a1c5be5039540221e1745.tar.gz
[microversions] Turn off check for header in response
We need to check header only for nova-related calls. While we are unable to determine nova's calls, let's just temporary disable it now and turn on it in the future with 2.18 microversion. Change-Id: I92cecb140fc478f0cf37783d2fcfcaccd935bdfc NOTE: this check affects only novaclient-as-a-lib
-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)