There was an error while loading. Please reload this page.
1 parent c54f4fc commit 31e53f1Copy full SHA for 31e53f1
1 file changed
lib/tools/tasks/update.py
@@ -9,6 +9,7 @@
9
from lib.host import Host
10
from lib.pool import NotAMasterHostError, Pool
11
from lib.tools.inventory import Inventory
12
+from lib.tools.tasks.snapshot import create_snapshots
13
14
from .. import logger
15
@@ -56,3 +57,9 @@ def update_pools(inventory: Inventory) -> None:
56
57
# repos are the same as for the master host
58
repos = inventory_hosts[p.master.hostname_or_ip]["repositories"]
59
executor.submit(other_host.update, repos)
60
+
61
+ # Snapshot creation
62
+ for hosting_pool, nested in nested_hosts.items():
63
+ pool = Pool(hosting_pool) # mandatory for getting an host instance
64
+ vm_uuids = [h.get_system_uuid() for h in nested]
65
+ create_snapshots(pool.master, vm_uuids)
0 commit comments