From d67f855d1fbc42026ebbe984e1111946bead6d45 Mon Sep 17 00:00:00 2001 From: a-kenji Date: Wed, 18 Jun 2025 13:15:37 +0200 Subject: [PATCH] pkgs/cli(machines): Move inventory warning to debug information Move the inventory warning to debug information and improve the error. This is an alternative proposal to: #4009 --- pkgs/clan-cli/clan_lib/machines/machines.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/clan-cli/clan_lib/machines/machines.py b/pkgs/clan-cli/clan_lib/machines/machines.py index 1a7850f52..0b5adf6ec 100644 --- a/pkgs/clan-cli/clan_lib/machines/machines.py +++ b/pkgs/clan-cli/clan_lib/machines/machines.py @@ -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"