From 1d7f0bd105bcbfc736f27555bb76895fe4227d60 Mon Sep 17 00:00:00 2001 From: Anders Ingemann Date: Sun, 12 Jan 2014 12:58:29 +0100 Subject: [PATCH] image_commands now uses manifest_vars --- plugins/image_commands/tasks.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/plugins/image_commands/tasks.py b/plugins/image_commands/tasks.py index e1ec73c..707cbc5 100644 --- a/plugins/image_commands/tasks.py +++ b/plugins/image_commands/tasks.py @@ -9,10 +9,6 @@ class ImageExecuteCommand(Task): @classmethod def run(cls, info): from common.tools import log_check_call - - for user_cmd in info.manifest.plugins['image_commands']['commands']: - command = [] - for elt in user_cmd: - fragment = elt.format(root=info.root) - command.append(fragment) + for raw_command in info.manifest.plugins['image_commands']['commands']: + command = map(lambda part: part.format(**info.manifest_vars), raw_command) log_check_call(command)