mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00
image_commands now uses manifest_vars
This commit is contained in:
parent
45521b2377
commit
1d7f0bd105
1 changed files with 2 additions and 6 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue