Quite ping

This commit is contained in:
Khue Doan 2020-11-13 00:29:25 +07:00
parent f87a915c1c
commit 3f2a9c8c86

View File

@ -33,7 +33,7 @@ nodes = [
]
def is_alive(node):
return os.system(f"ping -c 1 {node['ip']}") == 0
return os.system(f"ping -q -c 1 {node['ip']}") == 0
def is_ready(node):
return os.system(f"ssh -o StrictHostKeyChecking=no {user}@{node['ip']} exit") == 0