Inventory: fix persistence

This commit is contained in:
Johannes Kirschbauer
2024-12-10 16:19:45 +01:00
parent caa8f21df5
commit f65e92191a
5 changed files with 32 additions and 100 deletions

View File

@@ -6,9 +6,9 @@ import pytest
from clan_cli.api.modules import list_modules
from clan_cli.clan_uri import FlakeId
from clan_cli.inventory import (
Inventory,
Machine,
MachineDeploy,
load_inventory_json,
set_inventory,
)
from clan_cli.machines.create import CreateOptions, create_machine
@@ -70,7 +70,7 @@ def test_add_module_to_inventory(
)
subprocess.run(["git", "add", "."], cwd=test_flake_with_core.path, check=True)
inventory = load_inventory_json(base_path)
inventory: Inventory = {}
inventory["services"] = {
"borgbackup": {