diff options
author | Ruan HE <ruan.he@orange.com> | 2018-01-10 20:35:40 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-01-10 20:35:40 +0000 |
commit | 4c208b8b99bc2a4e8775111e5c623a1b89a126d5 (patch) | |
tree | 28a7c4bc9a6b99d7dcb2e98e7a17f49d75b12b3f /moon_wrapper/moon_wrapper/api/oslowrapper.py | |
parent | dc368bed1ff75f19553046570e1fad2990177783 (diff) | |
parent | 7775dccb613b99eca11ef93b8e8317820b023aa3 (diff) |
Merge "test case issue"
Diffstat (limited to 'moon_wrapper/moon_wrapper/api/oslowrapper.py')
-rw-r--r-- | moon_wrapper/moon_wrapper/api/oslowrapper.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/moon_wrapper/moon_wrapper/api/oslowrapper.py b/moon_wrapper/moon_wrapper/api/oslowrapper.py index d2836c08..ad9e430a 100644 --- a/moon_wrapper/moon_wrapper/api/oslowrapper.py +++ b/moon_wrapper/moon_wrapper/api/oslowrapper.py @@ -71,7 +71,7 @@ class OsloWrapper(Resource): logger.info("containers {}".format(containers)) for container in containers: if container.get("keystone_project_id") == project_id: - if "pipeline" in container['name']: + if "interface" in container['name']: return "http://{}:{}".format( container['name'], container['port']) @@ -80,7 +80,7 @@ class OsloWrapper(Resource): for containers in self.CACHE.containers.values(): for container in containers: if container.get("keystone_project_id") == project_id: - if "pipeline" in container['name']: + if "interface" in container['name']: return "http://{}:{}".format( container['name'], container['port']) @@ -109,6 +109,9 @@ class OsloWrapper(Resource): _object, _action )) + ''' + [Note] i think here if status != 200, should raise an exception + ''' logger.debug("Get interface {}".format(req.text)) if req.status_code == 200: if req.json().get("result", False): |