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
This commit is contained in:
@@ -275,8 +275,8 @@ def get_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"'{field}' is not set in inventory, falling back to slow Nix config"
|
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}"')
|
host_str = machine.eval_nix(f'config.clan.core.networking."{field}"')
|
||||||
source = "nix_machine"
|
source = "nix_machine"
|
||||||
|
|||||||
Reference in New Issue
Block a user