diff options
| author | Loic Guegan <loic.guegan@mailbox.org> | 2023-10-26 14:28:11 +0200 |
|---|---|---|
| committer | Loic Guegan <loic.guegan@mailbox.org> | 2023-10-26 14:28:11 +0200 |
| commit | 20d4f6f28fcaafe8b10bf82e5302180d6d3bc115 (patch) | |
| tree | 97061aaee95124cf6541451f758a2aca97f15d8d /clusterman/__main__.py | |
| parent | d79342a340c7025f675df45a180866b47e43fec7 (diff) | |
Minor changes
Diffstat (limited to 'clusterman/__main__.py')
| -rw-r--r-- | clusterman/__main__.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clusterman/__main__.py b/clusterman/__main__.py index 4980427..c133027 100644 --- a/clusterman/__main__.py +++ b/clusterman/__main__.py @@ -15,6 +15,8 @@ def main(): # Check node_cmd_scan=node_subparsers.add_parser("check") node_cmd_scan.add_argument("-t", "--timeout" ,help="Timeout", type=float) + # List + node_cmd_list=node_subparsers.add_parser("list") ##### Frontend commands ##### target_frontend = subparsers.add_parser("frontend") @@ -29,8 +31,6 @@ def main(): # Run the proper handler if args.target == "node": - print("Do node related stuff") - #node.scan("10.0.0.1","10.0.0.10") if args.command == "scan": if args.timeout: node.scan(node_cmd_scan.timeout) @@ -41,6 +41,8 @@ def main(): node.check(node_cmd_scan.timeout) else: node.check(CONF["timeout"]) + elif args.command == "list": + node.ls() else: target_node.print_help(sys.stderr) sys.exit(1) |
