Inventory: add load_eval method

This commit is contained in:
Johannes Kirschbauer
2024-07-23 11:31:34 +02:00
parent 75bdf3debc
commit 871fa8f1ff
7 changed files with 58 additions and 28 deletions

View File

@@ -14,7 +14,7 @@ from clan_cli.inventory import (
ServiceBorgbackupRoleClient,
ServiceBorgbackupRoleServer,
ServiceMeta,
load_inventory,
load_inventory_json,
save_inventory,
)
from clan_cli.machines.create import create_machine
@@ -67,7 +67,7 @@ def test_add_module_to_inventory(
),
)
inventory = load_inventory(base_path)
inventory = load_inventory_json(base_path)
inventory.services.borgbackup = {
"borg1": ServiceBorgbackup(