X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?p=escalator.git;a=blobdiff_plain;f=client%2Fescalatorclient%2Fv1%2Fversions.py;fp=client%2Fescalatorclient%2Fv1%2Fversions.py;h=811e577fd73c135de42afcd6d8970fc5917f65d8;hp=143c4c6098984937a8e48a87f4ee0fe4a03593c5;hb=a0625dbf2ffef08a492ffdaed641e62b90aa6ad6;hpb=3756b89c9bdd1274b1784750253485416920d8b6 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)