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.'
Change-Id: Ib7b5254146201cdf178fbf50169822db9ff0b9ef
Signed-off-by: Kong Wei<kong.wei2@zte.com.cn>
TODO(bcwaldon): document accepted params
"""
+ version_client = HTTPClient("http://127.0.0.1:19393")
fields = {}
for field in kwargs:
if field in VERSION_PARAMS:
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)