Merge pull request 'pkgs/cli(machines): Move inventory warning to debug information' (#4012) from kenji/ke-iventory-warning-debug into main

Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4012
This commit is contained in:
Luis Hebendanz
2025-06-18 15:39:08 +00:00

View File

@@ -275,8 +275,8 @@ def get_host(
host_str = inv_machine.get("deploy", {}).get(field)
if host_str is None:
machine.info(
f"'{field}' is not set in inventory, falling back to slow Nix config"
machine.debug(
f"'{field}' is not set in inventory, falling back to slower Nix config, set it either through the Nix or json interface to improve performance"
)
host_str = machine.eval_nix(f'config.clan.core.networking."{field}"')
source = "nix_machine"