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.
This commit is contained in:
committed by
Johannes Kirschbauer
parent
cff2d9d901
commit
5e55f07846
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user