Code Review
/
escalator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
(from parent 1:
3756b89
)
Merge "The escalator's port is 19393. The command 'escalator version' means get the...
author
kong wei
<kong.wei2@zte.com.cn>
Mon, 6 Mar 2017 01:29:04 +0000
(
01:29
+0000)
committer
Gerrit Code Review
<gerrit@opnfv.org>
Mon, 6 Mar 2017 01:29:04 +0000
(
01:29
+0000)
client/escalatorclient/v1/versions.py
patch
|
blob
|
history
diff --git
a/client/escalatorclient/v1/versions.py
b/client/escalatorclient/v1/versions.py
index
143c4c6
..
811e577
100644
(file)
--- 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)