From fc7a4d2b7589b15dd3e639a10f8408c8e46cce46 Mon Sep 17 00:00:00 2001 From: Michael Hoang Date: Tue, 15 Apr 2025 16:14:52 +0200 Subject: [PATCH] machines: fix `nixos-rebuild` not getting retried --- pkgs/clan-cli/clan_cli/machines/update.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/clan-cli/clan_cli/machines/update.py b/pkgs/clan-cli/clan_cli/machines/update.py index 05a8a7bb1..955b24816 100644 --- a/pkgs/clan-cli/clan_cli/machines/update.py +++ b/pkgs/clan-cli/clan_cli/machines/update.py @@ -188,12 +188,12 @@ def deploy_machines(machines: list[Machine]) -> None: machine.info( "Mobile machine detected, applying workaround deployment method" ) - ret = host.run( - test_cmd if is_mobile else switch_cmd, - RunOpts(msg_color=MsgColor(stderr=AnsiColor.DEFAULT)), - extra_env=env, - become_root=True, - ) + ret = host.run( + test_cmd if is_mobile else switch_cmd, + RunOpts(msg_color=MsgColor(stderr=AnsiColor.DEFAULT)), + extra_env=env, + become_root=True, + ) with AsyncRuntime() as runtime: for machine in machines: