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:
Christos Falas 2025-01-24 14:57:09 +00:00
parent 08ffb6cf5b
commit 6f3d5c0096
No known key found for this signature in database

View File

@ -29,6 +29,10 @@ class FeitHost:
self.checker.start() self.checker.start()
def check_connection(self) -> bool: 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( feitcsi_status = subprocess.run(
f"ssh root@{self.host[0]} pgrep feitcsi", f"ssh root@{self.host[0]} pgrep feitcsi",
check=False, check=False,