Deserialize manifest

This commit is contained in:
Anders Ingemann 2014-11-24 18:38:23 +01:00
parent 922cabe80a
commit 569e1246a5

View file

@ -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