andreaspeters commented on a change in pull request #409:
URL: https://github.com/apache/mesos/pull/409#discussion_r717458647
##########
File path: src/python/cli_new/lib/cli/mesos.py
##########
@@ -68,6 +63,35 @@ def get_agents(master, config):
"""
endpoint = "slaves"
key = "slaves"
+ return get_key_endpoint(key, endpoint, master, config)
+
+def get_framework_address(framework_id, master, config):
+ """
+ Given a master and an framework id, return the framework address
+ by checking the /master/frameworks endpoint of the master.
+ """
+ frameworks = get_frameworks(master, config)
+
+ for framework in frameworks:
+ if framework["id"] == framework_id:
+ return framework["webui_url"]
+ # pylint: disable=line-too-long
+ raise CLIException("Unable to find framework
'{id}'".format(id=framework_id))
Review comment:
:joy:don't know why I even add it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]