From f314eb04d67cf063f2ca3ed1920da7ea6da4db5a Mon Sep 17 00:00:00 2001 From: pinpox Date: Tue, 5 Aug 2025 11:08:38 +0200 Subject: [PATCH] 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 --- 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 21cb0e861..474cd7f9c 100644 --- a/pkgs/clan-cli/clan_lib/machines/machines.py +++ b/pkgs/clan-cli/clan_lib/machines/machines.py @@ -179,7 +179,7 @@ def get_machine_host( host_str = inv_machine.get("deploy", {}).get(field) 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" )