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:
pinpox
2025-08-05 11:08:38 +02:00
parent ebe206cdc0
commit f314eb04d6

View File

@@ -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"
) )