summaryrefslogtreecommitdiff
path: root/clusterman/__main__.py
diff options
context:
space:
mode:
Diffstat (limited to 'clusterman/__main__.py')
-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: