correct capitilization for targetHost in error message

This commit is contained in:
Jörg Thalheim
2025-05-01 15:10:32 +02:00
parent 4ef8ef4542
commit 22608dd0c2

View File

@@ -202,7 +202,7 @@ def deploy_machines(machines: list[Machine]) -> None:
for machine in machines:
if machine._class_ == "darwin":
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)
machine.info(f"Updating {machine.name}")