mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 09:50:37 +00:00
17 lines
429 B
Python
17 lines
429 B
Python
![]() |
import tasks
|
||
|
|
||
|
|
||
|
def resolve_tasks(tasklist, manifest):
|
||
|
tasklist.add(tasks.AddFolderMounts,
|
||
|
tasks.RemoveFolderMounts)
|
||
|
|
||
|
|
||
|
def resolve_rollback_tasks(tasklist, tasks_completed, manifest):
|
||
|
completed = [type(task) for task in tasks_completed]
|
||
|
|
||
|
def counter_task(task, counter):
|
||
|
if task in completed and counter not in completed:
|
||
|
tasklist.add(counter)
|
||
|
|
||
|
counter_task(tasks.AddFolderMounts, tasks.RemoveFolderMounts)
|