From 41141c04835afcab81baba5b8ff0aa8b74281f96 Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Mon, 26 Aug 2024 18:00:41 +0200 Subject: [PATCH] API: fix online check --- pkgs/clan-cli/clan_cli/machines/list.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/clan-cli/clan_cli/machines/list.py b/pkgs/clan-cli/clan_cli/machines/list.py index 0ebe9ec5b..0c0ce719a 100644 --- a/pkgs/clan-cli/clan_cli/machines/list.py +++ b/pkgs/clan-cli/clan_cli/machines/list.py @@ -103,10 +103,13 @@ def check_machine_online( "ssh", *(["-i", f"{opts.keyfile}"] if opts and opts.keyfile else []), # Disable strict host key checking - "-o StrictHostKeyChecking=no", + "-o", + "StrictHostKeyChecking=no", # Disable known hosts file - "-o UserKnownHostsFile=/dev/null", - f"-o ConnectTimeout={timeout}", + "-o", + "UserKnownHostsFile=/dev/null", + "-o", + f"ConnectTimeout={timeout}", f"{hostname}", "true", "&> /dev/null",