mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-07 14:03:01 +07:00
Quite ping
This commit is contained in:
parent
f87a915c1c
commit
3f2a9c8c86
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user