summaryrefslogtreecommitdiff
path: root/clusterman/commands
diff options
context:
space:
mode:
authorLoic Guegan <loic.guegan@mailbox.org>2023-10-26 14:24:02 +0200
committerLoic Guegan <loic.guegan@mailbox.org>2023-10-26 14:24:02 +0200
commitd79342a340c7025f675df45a180866b47e43fec7 (patch)
tree13b677f5634637abdac7e991f08bca1c2398b95a /clusterman/commands
parent21a83cd9736a742645179d899488bd9db62e80c9 (diff)
Minor changes
Diffstat (limited to 'clusterman/commands')
-rw-r--r--clusterman/commands/node.py6
1 files changed, 3 insertions, 3 deletions
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")