image_commands now uses manifest_vars

This commit is contained in:
Anders Ingemann 2014-01-12 12:58:29 +01:00
parent 45521b2377
commit 1d7f0bd105

View file

@ -9,10 +9,6 @@ class ImageExecuteCommand(Task):
@classmethod @classmethod
def run(cls, info): def run(cls, info):
from common.tools import log_check_call from common.tools import log_check_call
for raw_command in info.manifest.plugins['image_commands']['commands']:
for user_cmd in info.manifest.plugins['image_commands']['commands']: command = map(lambda part: part.format(**info.manifest_vars), raw_command)
command = []
for elt in user_cmd:
fragment = elt.format(root=info.root)
command.append(fragment)
log_check_call(command) log_check_call(command)