Reduce targetHost warning level
The documentation currently lists setting targetHost in the NixOS configuration as a slower, but valid option. Especially for dynamic values, this is the recommended way but it results in a lot of annyoing warnings. This lowers the warning level, so it will only get printed on --debug
This commit is contained in:
@@ -179,7 +179,7 @@ def get_machine_host(
|
|||||||
host_str = inv_machine.get("deploy", {}).get(field)
|
host_str = inv_machine.get("deploy", {}).get(field)
|
||||||
|
|
||||||
if host_str is None:
|
if host_str is None:
|
||||||
machine.info(
|
machine.debug(
|
||||||
f"`inventory.machines.{machine.name}.deploy.{field}` is not set — falling back to `clan.core.networking.{field}`. See: https://docs.clan.lol/guides/target-host"
|
f"`inventory.machines.{machine.name}.deploy.{field}` is not set — falling back to `clan.core.networking.{field}`. See: https://docs.clan.lol/guides/target-host"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user