mirror of
https://gitlab.com/manzerbredes/clusterman.git
synced 2025-04-07 04:26:25 +02:00
Minor changes
This commit is contained in:
parent
839f4d5a30
commit
cd4e28906b
1 changed files with 17 additions and 21 deletions
|
@ -64,15 +64,11 @@ def scan(timeout):
|
||||||
CONF.save()
|
CONF.save()
|
||||||
|
|
||||||
def check(timeout):
|
def check(timeout):
|
||||||
nodes_path=CONF.NODE_FILE
|
nodes=get_node_list()
|
||||||
nodes=None
|
if len(nodes) <= 0:
|
||||||
if os.path.exists(nodes_path):
|
|
||||||
with open(nodes_path) as f:
|
|
||||||
nodes=json.load(f)
|
|
||||||
else:
|
|
||||||
print("Please perform a scan before")
|
print("Please perform a scan before")
|
||||||
exit(0)
|
exit(0)
|
||||||
if not nodes == None:
|
# Perform ping check
|
||||||
fail=False
|
fail=False
|
||||||
for ip in nodes:
|
for ip in nodes:
|
||||||
print("Contacting {}...".format(ip),end='')
|
print("Contacting {}...".format(ip),end='')
|
||||||
|
|
Loading…
Add table
Reference in a new issue