From 6f13b3a29c38c3f2bd69558d19255ff46a6513bf Mon Sep 17 00:00:00 2001 From: Qubasa Date: Mon, 31 Mar 2025 20:25:05 +0200 Subject: [PATCH] clan-cli: Fix deployment as non root edgecase --- pkgs/clan-cli/clan_cli/machines/update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/clan-cli/clan_cli/machines/update.py b/pkgs/clan-cli/clan_cli/machines/update.py index 6600a4b6b..60b1eeabb 100644 --- a/pkgs/clan-cli/clan_cli/machines/update.py +++ b/pkgs/clan-cli/clan_cli/machines/update.py @@ -161,7 +161,7 @@ def deploy_machines(machines: list[Machine]) -> None: switch_cmd.extend(["--target-host", target_host.target]) test_cmd.extend(["--target-host", target_host.target]) - if target_host and target_host.user != "root": + if (target_host and target_host.user != "root") or host.user != "root": switch_cmd.extend(["--use-remote-sudo"]) test_cmd.extend(["--use-remote-sudo"])