API: fix online check
This commit is contained in:
@@ -103,10 +103,13 @@ def check_machine_online(
|
|||||||
"ssh",
|
"ssh",
|
||||||
*(["-i", f"{opts.keyfile}"] if opts and opts.keyfile else []),
|
*(["-i", f"{opts.keyfile}"] if opts and opts.keyfile else []),
|
||||||
# Disable strict host key checking
|
# Disable strict host key checking
|
||||||
"-o StrictHostKeyChecking=no",
|
"-o",
|
||||||
|
"StrictHostKeyChecking=no",
|
||||||
# Disable known hosts file
|
# Disable known hosts file
|
||||||
"-o UserKnownHostsFile=/dev/null",
|
"-o",
|
||||||
f"-o ConnectTimeout={timeout}",
|
"UserKnownHostsFile=/dev/null",
|
||||||
|
"-o",
|
||||||
|
f"ConnectTimeout={timeout}",
|
||||||
f"{hostname}",
|
f"{hostname}",
|
||||||
"true",
|
"true",
|
||||||
"&> /dev/null",
|
"&> /dev/null",
|
||||||
|
|||||||
Reference in New Issue
Block a user