API: rename set_inventory

This commit is contained in:
Johannes Kirschbauer
2024-09-13 16:09:45 +02:00
parent fd15bf4f5c
commit 91a9fb23be
7 changed files with 17 additions and 14 deletions

View File

@@ -8,7 +8,7 @@ from clan_cli.inventory import (
Machine,
MachineDeploy,
load_inventory_json,
save_inventory,
set_inventory,
)
from clan_cli.machines.create import create_machine
from clan_cli.nix import nix_eval, run_no_stdout
@@ -74,7 +74,7 @@ def test_add_module_to_inventory(
}
}
save_inventory(inventory, base_path, "Add borgbackup service")
set_inventory(inventory, base_path, "Add borgbackup service")
cmd = ["facts", "generate", "--flake", str(test_flake_with_core.path), "machine1"]
cli.run(cmd)