clan_lib: inventory store use structured keys

This commit is contained in:
Johannes Kirschbauer
2025-09-21 16:25:54 +02:00
parent bd50e1ee40
commit 381c190ba2
2 changed files with 18 additions and 10 deletions

View File

@@ -35,7 +35,7 @@ def delete_machine(machine: Machine) -> None:
inventory_store = InventoryStore(machine.flake)
try:
inventory_store.delete(
{f"machines.{machine.name}"},
{("machines", machine.name)},
)
except KeyError as exc:
# louis@(2025-03-09): test infrastructure does not seem to set the