Allow turning off host checking
This is needed for running on remote services, since I cannot ssh on the FeitCSI machines from the cloud provider
This commit is contained in:
parent
08ffb6cf5b
commit
6f3d5c0096
@ -29,6 +29,10 @@ class FeitHost:
|
||||
self.checker.start()
|
||||
|
||||
def check_connection(self) -> bool:
|
||||
if not config.HOST_CHECKING:
|
||||
# This may not always be possible to check when the host is a reverse-proxy
|
||||
# or doesn't have SSH access. This is the case when running on cloud servers
|
||||
return True
|
||||
feitcsi_status = subprocess.run(
|
||||
f"ssh root@{self.host[0]} pgrep feitcsi",
|
||||
check=False,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user