clan-cli: Replace log.info to machine.info if applicable

This commit is contained in:
Qubasa
2024-12-12 15:35:26 +01:00
parent ffdf9d37f8
commit b9091beff9
17 changed files with 126 additions and 93 deletions

View File

@@ -170,7 +170,9 @@ def deploy_machine(machines: list[Machine]) -> None:
# if the machine is mobile, we retry to deploy with the mobile workaround method
is_mobile = machine.deployment.get("nixosMobileWorkaround", False)
if is_mobile and ret.returncode != 0:
log.info("Mobile machine detected, applying workaround deployment method")
machine.info(
"Mobile machine detected, applying workaround deployment method"
)
ret = host.run(
test_cmd,
RunOpts(msg_color=MsgColor(stderr=AnsiColor.DEFAULT)),