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/07/10 18:52:22 UTC

[incubator-heron] branch master updated: Add cluster to cmdline options (#3312)

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 bffedbf  Add cluster to cmdline options (#3312)
bffedbf is described below

commit bffedbf178ca66487083a5f6d9b22308e722f177
Author: Ning Wang <nw...@twitter.com>
AuthorDate: Wed Jul 10 11:52:16 2019 -0700

    Add cluster to cmdline options (#3312)
---
 heron/tools/cli/src/python/submit.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/heron/tools/cli/src/python/submit.py b/heron/tools/cli/src/python/submit.py
index ca7d5e6..f147619 100644
--- a/heron/tools/cli/src/python/submit.py
+++ b/heron/tools/cli/src/python/submit.py
@@ -463,6 +463,10 @@ def run(command, parser, cl_args, unknown_args):
   opts.set_config('cmdline.topology.initial.state', initial_state)
   opts.set_config('cmdline.topology.role', cl_args['role'])
   opts.set_config('cmdline.topology.environment', cl_args['environ'])
+  opts.set_config('cmdline.topology.cluster', cl_args['cluster'])
+  opts.set_config('cmdline.topology.file_name', cl_args['topology-file-name'])
+  opts.set_config('cmdline.topology.class_name', cl_args['topology-class-name'])
+  opts.set_config('cmdline.topology.submit_user', cl_args['submit_user'])
 
   # Use CLI release yaml file if the release_yaml_file config is empty
   if not cl_args['release_yaml_file']: