From d79342a340c7025f675df45a180866b47e43fec7 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Thu, 26 Oct 2023 14:24:02 +0200 Subject: Minor changes --- clusterman/commands/node.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'clusterman/commands') diff --git a/clusterman/commands/node.py b/clusterman/commands/node.py index b7dca60..54de67c 100644 --- a/clusterman/commands/node.py +++ b/clusterman/commands/node.py @@ -6,7 +6,7 @@ def ls(): print("List nodes..") -def scan(ip4_from,ip4_to,timeout=0.1): +def scan(timeout): from_split=[int(n) for n in CONF["cluster"]["ip4_from"].split(".")] to_split=[int(n) for n in CONF["cluster"]["ip4_to"].split(".")] ignore_list=[ip.strip(" ") for ip in CONF["cluster"]["ip4_ignore"]] @@ -30,7 +30,7 @@ def scan(ip4_from,ip4_to,timeout=0.1): with open(CONF["paths"]["nodes"], "w") as f: f.write(json.dumps(nodes)) -def check(timeout=0.1): +def check(timeout): nodes_path=CONF["paths"]["nodes"] nodes=None if os.path.exists(nodes_path): @@ -51,6 +51,6 @@ def check(timeout=0.1): print("=> Not responding!!") if not fail: - print("Succeed: All nodes are reachable") + print("Success: All nodes are reachable") else: print("Error: Some of your nodes are not reachable") -- cgit v1.2.3