From 6f3d5c00969f49784e17a328215de8f90c030177 Mon Sep 17 00:00:00 2001 From: Christos Falas Date: Fri, 24 Jan 2025 14:57:09 +0000 Subject: [PATCH] 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 --- where_fi/collection/ingest.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/where_fi/collection/ingest.py b/where_fi/collection/ingest.py index 1d1ab0f..1504c0b 100644 --- a/where_fi/collection/ingest.py +++ b/where_fi/collection/ingest.py @@ -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,