Commit 5fae1334 authored by Jérome Perrin's avatar Jérome Perrin

slapos.cookbook:wrapper : allow empty lines in environment

parent a683108a
...@@ -53,9 +53,7 @@ class Recipe(GenericBaseRecipe): ...@@ -53,9 +53,7 @@ class Recipe(GenericBaseRecipe):
if filename.strip()] if filename.strip()]
if environment is not None: if environment is not None:
environment = dict((k.strip(), v.strip()) for k, v in [ environment = dict((k.strip(), v.strip()) for k, v in [
line.split('=') line.split('=') for line in environment.splitlines() if line.strip() ])
for line in environment.split('\n')
])
return [self.createPythonScript( return [self.createPythonScript(
wrapper_path, wrapper_path,
'slapos.recipe.librecipe.execute.generic_exec', 'slapos.recipe.librecipe.execute.generic_exec',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment