You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by nw...@apache.org on 2019/01/10 17:11:51 UTC

[incubator-heron] branch master updated: Clean up a url format code (#3149)

This is an automated email from the ASF dual-hosted git repository.

nwang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-heron.git


The following commit(s) were added to refs/heads/master by this push:
     new 3fcf94d  Clean up a url format code (#3149)
3fcf94d is described below

commit 3fcf94dd97b0beaa0d387f384b6057d66c859e2a
Author: Ning Wang <nw...@twitter.com>
AuthorDate: Thu Jan 10 09:11:45 2019 -0800

    Clean up a url format code (#3149)
---
 heron/tools/common/src/python/access/heron_api.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/heron/tools/common/src/python/access/heron_api.py b/heron/tools/common/src/python/access/heron_api.py
index 569c53c..1ab571c 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 @@ from query import QueryHandler
 # 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)))