You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by GitBox <gi...@apache.org> on 2019/01/10 17:11:47 UTC
[GitHub] nwangtw closed pull request #3149: Clean up a url format code
nwangtw closed pull request #3149: Clean up a url format code
URL: https://github.com/apache/incubator-heron/pull/3149
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/heron/tools/common/src/python/access/heron_api.py b/heron/tools/common/src/python/access/heron_api.py
index 569c53c031..1ab571ce9c 100644
--- a/heron/tools/common/src/python/access/heron_api.py
+++ b/heron/tools/common/src/python/access/heron_api.py
@@ -31,6 +31,7 @@
# pylint: disable=bad-whitespace
CLUSTER_URL_FMT = "%s/clusters"
TOPOLOGIES_URL_FMT = "%s/topologies"
+TOPOLOGIES_STATS_URL_FMT = "%s/states" % TOPOLOGIES_URL_FMT
EXECUTION_STATE_URL_FMT = "%s/executionstate" % TOPOLOGIES_URL_FMT
LOGICALPLAN_URL_FMT = "%s/logicalplan" % TOPOLOGIES_URL_FMT
PHYSICALPLAN_URL_FMT = "%s/physicalplan" % TOPOLOGIES_URL_FMT
@@ -138,7 +139,7 @@ def get_topologies_states():
Get the list of topologies and their states
:return:
'''
- request_url = create_url(TOPOLOGIES_URL_FMT) + "/states"
+ request_url = create_url(TOPOLOGIES_STATS_URL_FMT)
raise tornado.gen.Return((yield fetch_url_as_json(request_url)))
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services