mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-10-11 17:40:29 +00:00
Deserialize manifest
This commit is contained in:
parent
922cabe80a
commit
569e1246a5
1 changed files with 3 additions and 1 deletions
|
@ -86,7 +86,6 @@ def setup_loggers(opts):
|
||||||
|
|
||||||
|
|
||||||
def run(manifest, debug=False, pause_on_error=False, dry_run=False):
|
def run(manifest, debug=False, pause_on_error=False, dry_run=False):
|
||||||
return manifest
|
|
||||||
"""Runs the bootstrapping process
|
"""Runs the bootstrapping process
|
||||||
|
|
||||||
:params Manifest manifest: The manifest to run the bootstrapping process for
|
:params Manifest manifest: The manifest to run the bootstrapping process for
|
||||||
|
@ -94,6 +93,9 @@ def run(manifest, debug=False, pause_on_error=False, dry_run=False):
|
||||||
:params bool pause_on_error: Whether to pause on error, before rollback
|
:params bool pause_on_error: Whether to pause on error, before rollback
|
||||||
:params bool dry_run: Don't actually run the tasks
|
:params bool dry_run: Don't actually run the tasks
|
||||||
"""
|
"""
|
||||||
|
if isinstance(manifest, dict):
|
||||||
|
from manifest import Manifest
|
||||||
|
manifest = Manifest(path=manifest['path'], data=manifest['data'])
|
||||||
# Get the tasklist
|
# Get the tasklist
|
||||||
from tasklist import load_tasks
|
from tasklist import load_tasks
|
||||||
from tasklist import TaskList
|
from tasklist import TaskList
|
||||||
|
|
Loading…
Add table
Reference in a new issue