summaryrefslogtreecommitdiffstats
path: root/python-discovery-client/discovery_client/discovery.py
diff options
context:
space:
mode:
authorMichael Hwang <mhwang@research.att.com>2017-09-21 12:19:32 -0400
committerMichael Hwang <mhwang@research.att.com>2017-09-21 17:04:39 -0400
commite11be5dc15e6800ed6111b7773b9e44571343207 (patch)
treeab5b973d7239b8942ab27c3ee04455533d6a4f23 /python-discovery-client/discovery_client/discovery.py
parent2200894f54019231bfe1a62845dda03e9bb87bd1 (diff)
Fix tox to give more accurate coverage reports
* Also attempted to get sonar working * Fixed minor things along the way Change-Id: I434c0d791140e75cd5997be0cc3fefce7ccc292f Issue-Id: DCAEGEN2-60 Signed-off-by: Michael Hwang <mhwang@research.att.com>
Diffstat (limited to 'python-discovery-client/discovery_client/discovery.py')
-rw-r--r--python-discovery-client/discovery_client/discovery.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/python-discovery-client/discovery_client/discovery.py b/python-discovery-client/discovery_client/discovery.py
index 180e933..51b5897 100644
--- a/python-discovery-client/discovery_client/discovery.py
+++ b/python-discovery-client/discovery_client/discovery.py
@@ -222,9 +222,7 @@ def _resolve_name(lookup_func, service_name):
# TODO: Need a better way to identify CDAP apps. Really need to make this
# better.
- if "platform-" in service_name:
- return "{0}:{1}".format(ip, port)
- elif "cdap" in service_name:
+ if "cdap" in service_name:
redirectish_url = "http://{0}:{1}/application/{2}".format(ip, port,
service_name)