From 06613de825638932eb41510d01f961c7186a23da Mon Sep 17 00:00:00 2001 From: adeci Date: Sun, 6 Jul 2025 02:27:12 -0400 Subject: [PATCH] clan-cli: fix incorrect field name in deploy warning messages. The warning for missing buildHost/targetHost always showed targetHost in the path, even when buildHost was the missing field. --- pkgs/clan-cli/clan_lib/machines/machines.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/clan-cli/clan_lib/machines/machines.py b/pkgs/clan-cli/clan_lib/machines/machines.py index 400a336d8..489b0bccf 100644 --- a/pkgs/clan-cli/clan_lib/machines/machines.py +++ b/pkgs/clan-cli/clan_lib/machines/machines.py @@ -188,7 +188,7 @@ def get_host( if host_str is None: machine.warn( - f"'{field}' is not set in `inventory.machines.${name}.deploy.targetHost` - falling back to _slower_ nixos option: `clan.core.networking.{field}`" + f"'{field}' is not set in `inventory.machines.${machine.name}.deploy.{field}` - falling back to _slower_ nixos option: `clan.core.networking.{field}`" ) host_str = machine.select(f'config.clan.core.networking."{field}"') source = "machine"