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
76af63ee1c
commit
06613de825
@@ -188,7 +188,7 @@ def get_host(
|
|||||||
|
|
||||||
if host_str is None:
|
if host_str is None:
|
||||||
machine.warn(
|
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}"')
|
host_str = machine.select(f'config.clan.core.networking."{field}"')
|
||||||
source = "machine"
|
source = "machine"
|
||||||
|
|||||||
Reference in New Issue
Block a user