diff options
Diffstat (limited to 'python-discovery-client/discovery_client/discovery.py')
-rw-r--r-- | python-discovery-client/discovery_client/discovery.py | 4 |
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) |