storm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From etha...@apache.org
Subject [storm] branch master updated: [Minor] Fix exception text to explain rebalance argument (#3260)
Date Fri, 01 May 2020 14:04:45 GMT
This is an automated email from the ASF dual-hosted git repository.

ethanli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/storm.git


The following commit(s) were added to refs/heads/master by this push:
     new 06e1ecb  [Minor] Fix exception text to explain rebalance argument (#3260)
06e1ecb is described below

commit 06e1ecb2f6de7c3f28ece287a2bd5ae73ea91de7
Author: Yuval Lieberman <yuvallb@gmail.com>
AuthorDate: Fri May 1 17:04:28 2020 +0300

    [Minor] Fix exception text to explain rebalance argument (#3260)
---
 bin/storm.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/storm.py b/bin/storm.py
index c33fff7..ac0ebf0 100755
--- a/bin/storm.py
+++ b/bin/storm.py
@@ -1211,7 +1211,7 @@ def rebalance(args):
             if new_value < 0:
                 raise argparse.ArgumentTypeError("Executor count should be > 0")
         except:
-            raise argparse.ArgumentTypeError("Should be in the form component_name:new_executor_count")
+            raise argparse.ArgumentTypeError("Should be in the form component_name=new_executor_count")
     exec_storm_class(
         "org.apache.storm.command.Rebalance",
         main_class_args=remove_common_options(sys.argv[2:]), storm_config_opts=args.storm_config_opts,
@@ -1490,4 +1490,4 @@ def main():
 
 
 if __name__ == "__main__":
-    main()
\ No newline at end of file
+    main()


Mime
View raw message