summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Guegan <loic.guegan@mailbox.org>2023-11-21 10:08:28 +0100
committerLoic Guegan <loic.guegan@mailbox.org>2023-11-21 10:08:28 +0100
commit42d95fe6b9af7544720b90e4fb6d7fea35af9d68 (patch)
tree8a9af11ff106938db15e633f901adcc8b8fd2654
parentb69e0a12c19d878c9d0ff963a732275c6e226fa6 (diff)
Minor changes
-rw-r--r--clusterman/__main__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/clusterman/__main__.py b/clusterman/__main__.py
index 738721c..98dff99 100644
--- a/clusterman/__main__.py
+++ b/clusterman/__main__.py
@@ -21,7 +21,7 @@ def main():
# Exec
node_cmd_list=node_subparsers.add_parser("exec")
node_cmd_list.add_argument("-g", "--group" ,help="Group to run the command on")
- node_cmd_list.add_argument("-l", "--login" ,help="Use ssh username and password")
+ node_cmd_list.add_argument("-l", "--login" ,help="Use ssh username and password", action='store_false')
node_cmd_list.add_argument("cmd",help="Command to run",nargs=argparse.REMAINDER)
##### Frontend commands #####
@@ -61,7 +61,6 @@ def main():
node.ls()
elif args.command == "exec":
use_key=not args.login
- exit(0)
if args.group:
node.exec(args.cmd,args.group,use_key)
else: