Refactor(api/list_machines): rename from list_inv_machines

This commit is contained in:
Johannes Kirschbauer
2025-06-09 13:32:08 +02:00
parent e65cba43f7
commit 57e71e6c66
5 changed files with 18 additions and 18 deletions

View File

@@ -20,18 +20,6 @@ from clan_cli.machines.hardware import HardwareConfig
log = logging.getLogger(__name__)
@API.register
def list_inv_machines(flake: Flake) -> dict[str, InventoryMachine]:
"""
List machines in the inventory for the UI.
"""
inventory_store = InventoryStore(flake=flake)
inventory = inventory_store.read()
res = inventory.get("machines", {})
return res
def list_machines(
flake: Flake, nix_options: list[str] | None = None
) -> dict[str, Machine]: