From 569e1246a54d57b79cd6b899a3ad4868cec84f2d Mon Sep 17 00:00:00 2001 From: Anders Ingemann Date: Mon, 24 Nov 2014 18:38:23 +0100 Subject: [PATCH] Deserialize manifest --- bootstrapvz/base/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bootstrapvz/base/main.py b/bootstrapvz/base/main.py index b32bf3c..bea8686 100644 --- a/bootstrapvz/base/main.py +++ b/bootstrapvz/base/main.py @@ -86,7 +86,6 @@ def setup_loggers(opts): def run(manifest, debug=False, pause_on_error=False, dry_run=False): - return manifest """Runs the bootstrapping process :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 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 from tasklist import load_tasks from tasklist import TaskList