machines: fix nixos-rebuild not getting retried

This commit is contained in:
Michael Hoang
2025-04-15 16:14:52 +02:00
parent 69a29c5c43
commit fc7a4d2b75

View File

@@ -188,12 +188,12 @@ def deploy_machines(machines: list[Machine]) -> None:
machine.info( machine.info(
"Mobile machine detected, applying workaround deployment method" "Mobile machine detected, applying workaround deployment method"
) )
ret = host.run( ret = host.run(
test_cmd if is_mobile else switch_cmd, test_cmd if is_mobile else switch_cmd,
RunOpts(msg_color=MsgColor(stderr=AnsiColor.DEFAULT)), RunOpts(msg_color=MsgColor(stderr=AnsiColor.DEFAULT)),
extra_env=env, extra_env=env,
become_root=True, become_root=True,
) )
with AsyncRuntime() as runtime: with AsyncRuntime() as runtime:
for machine in machines: for machine in machines: