summaryrefslogtreecommitdiffstats
path: root/client/escalatorclient/v1
diff options
context:
space:
mode:
authorkong wei <kong.wei2@zte.com.cn>2017-03-06 01:29:04 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-03-06 01:29:04 +0000
commita0625dbf2ffef08a492ffdaed641e62b90aa6ad6 (patch)
tree6f2353cf1eb2178de6ad60f15297129a784bc002 /client/escalatorclient/v1
parent3756b89c9bdd1274b1784750253485416920d8b6 (diff)
parenta0d08d9962ddae946f83f81659d6bad2446db2a7 (diff)
Merge "The escalator's port is 19393. The command 'escalator version' means get the version of escalator. So it should use the 'http://127.0.0.1:19393' to get this infomation.'"
Diffstat (limited to 'client/escalatorclient/v1')
-rw-r--r--client/escalatorclient/v1/versions.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/escalatorclient/v1/versions.py b/client/escalatorclient/v1/versions.py
index 143c4c6..811e577 100644
--- a/client/escalatorclient/v1/versions.py
+++ b/client/escalatorclient/v1/versions.py
@@ -211,6 +211,7 @@ class VersionManager(base.ManagerWithFind):
TODO(bcwaldon): document accepted params
"""
+ version_client = HTTPClient("http://127.0.0.1:19393")
fields = {}
for field in kwargs:
if field in VERSION_PARAMS:
@@ -221,5 +222,5 @@ class VersionManager(base.ManagerWithFind):
url = '/v1/versions'
hdrs = self._version_meta_to_headers(fields)
- resp, body = self.client.post(url, headers=None, data=hdrs)
+ resp, body = version_client.post(url, headers=None, data=hdrs)
return Version(self, body)