clan machines list: reduce noise
Don't log nix error output by default on `clan machines list`. Log it, if `--debug` is passed. Fixes #1115
This commit is contained in:
@@ -39,7 +39,7 @@ def inspect_flake(flake_url: str | Path, machine_name: str) -> FlakeConfig:
|
||||
system = config["system"]
|
||||
|
||||
# Check if the machine exists
|
||||
machines = list_machines(flake_url)
|
||||
machines = list_machines(False, flake_url)
|
||||
if machine_name not in machines:
|
||||
raise ClanError(
|
||||
f"Machine {machine_name} not found in {flake_url}. Available machines: {', '.join(machines)}"
|
||||
|
||||
Reference in New Issue
Block a user