Merge pull request 'correct capitilization for targetHost in error message' (#3461) from target-host into main

Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3461
This commit is contained in:
Mic92
2025-05-01 13:21:42 +00:00

View File

@@ -202,7 +202,7 @@ def deploy_machines(machines: list[Machine]) -> None:
for machine in machines: for machine in machines:
if machine._class_ == "darwin": if machine._class_ == "darwin":
if not machine.deploy_as_root and machine.target_host.user == "root": if not machine.deploy_as_root and machine.target_host.user == "root":
msg = f"'TargetHost' should be set to a non-root user for deploying to nix-darwin on machine '{machine.name}'" msg = f"'targetHost' should be set to a non-root user for deploying to nix-darwin on machine '{machine.name}'"
raise ClanError(msg) raise ClanError(msg)
machine.info(f"Updating {machine.name}") machine.info(f"Updating {machine.name}")