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):
if filename.strip()]
if environment is not None:
environment = dict((k.strip(), v.strip()) for k, v in [
line.split('=')
for line in environment.split('\n')
])
line.split('=') for line in environment.splitlines() if line.strip() ])
return [self.createPythonScript(
wrapper_path,
'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