Minor changes

This commit is contained in:
Loïc Guégan 2023-11-21 10:02:45 +01:00
parent 5914c11c89
commit bdbb257030

View file

@ -60,10 +60,11 @@ def main():
else:
node.ls()
elif args.command == "exec":
use_key=not args.login
if args.group:
node.exec(args.cmd,args.group,args.login)
node.exec(args.cmd,args.group,use_key)
else:
node.exec(args.cmd,args.login)
node.exec(args.cmd, use_key=use_key)
else:
target_node.print_help(sys.stderr)
sys.exit(1)