summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxianming mao <xianming.mao@easystack.cn>2016-12-21 11:00:15 +0800
committerxianming mao <xianming.mao@easystack.cn>2016-12-26 10:19:36 +0800
commit9dc3cc6cb12a9bcc1ed0d42347d9138c2f5a0f6b (patch)
tree08a3b68315d1740332a6ac0904c92b354b370d5c
parentb8ed0c2d2729188a38fb0fb6b43e9ef6332709b7 (diff)
downloadpython-cinderclient-9dc3cc6cb12a9bcc1ed0d42347d9138c2f5a0f6b.tar.gz
(Trival)Modify the version_header with self.version_header
Because compiler raise a "undefined name" warning, so we should use self.version_header instead of version_header. Change-Id: If290fbf044fa86d9a8510a6e3cf65f6fc41c0ef7
-rw-r--r--cinderclient/tests/unit/v2/fakes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cinderclient/tests/unit/v2/fakes.py b/cinderclient/tests/unit/v2/fakes.py
index d2bcae4..84f9b96 100644
--- a/cinderclient/tests/unit/v2/fakes.py
+++ b/cinderclient/tests/unit/v2/fakes.py
@@ -369,7 +369,7 @@ class FakeHTTPClient(base_client.HTTPClient):
# add fake request-id header
headers['x-openstack-request-id'] = REQUEST_ID
if self.version_header:
- headers['OpenStack-API-version'] = version_header
+ headers['OpenStack-API-version'] = self.version_header
r = utils.TestResponse({
"status_code": status,
"text": body,