Refactor(cli/list_machines): rename to list_full_machines

This makes it clear that this should be used with care
It is potentially more expensive to create the full object, therefore it should be discouraged by its longer name
This listing is implemented based on the basic listing, where each item is turned into the bigger machine class
This commit is contained in:
Johannes Kirschbauer
2025-06-09 13:40:46 +02:00
parent 0b6bc81efe
commit 665b2095b2
7 changed files with 23 additions and 21 deletions

View File

@@ -22,7 +22,7 @@ from clan_cli.completions import (
)
from clan_cli.facts.generate import generate_facts
from clan_cli.facts.upload import upload_secrets
from clan_cli.machines.list import list_machines
from clan_cli.machines.list import list_full_machines
from clan_cli.vars.generate import generate_vars
from clan_cli.vars.upload import upload_secret_vars
@@ -225,7 +225,7 @@ def update_command(args: argparse.Namespace) -> None:
machines: list[Machine] = []
# if no machines are passed, we will update all machines
selected_machines = (
args.machines if args.machines else list_machines(args.flake).keys()
args.machines if args.machines else list_full_machines(args.flake).keys()
)
if args.target_host is not None and len(args.machines) > 1: