diff options
Diffstat (limited to 'clusterman/commands/node.py')
| -rw-r--r-- | clusterman/commands/node.py | 6 |
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") |
