Fix(test): migrate machine cli command tests to use the new functions

This commit is contained in:
Johannes Kirschbauer
2025-05-27 17:57:08 +02:00
parent c293d813cc
commit ec6fddce03
2 changed files with 18 additions and 5 deletions

View File

@@ -137,6 +137,7 @@ def create_machine(
)
inventory_store.write(inventory, message=f"machine '{machine_name}'")
opts.clan_dir.invalidate_cache()
# Commit at the end in that order to avoid committing halve-baked machines
# TODO: automatic rollbacks if something goes wrong