Commit ec95ab3b authored by Marco Mariani's avatar Marco Mariani

pass executable by named parameter, handle multiple notification urls

parent 9bdb2611
...@@ -66,8 +66,11 @@ class Notify(GenericBaseRecipe): ...@@ -66,8 +66,11 @@ class Notify(GenericBaseRecipe):
'-l', kwargs['log'], '-l', kwargs['log'],
'--title', kwargs['title'], '--title', kwargs['title'],
'--feed', kwargs['feed_url'], '--feed', kwargs['feed_url'],
'--notification-url', kwargs['notification_url'], '--notification-url']
executable]
commandline.extend(kwargs['notification_url'].split(' '))
commandline.extend(['--executable', executable])
return self.createPythonScript(wrapper, return self.createPythonScript(wrapper,
'slapos.recipe.librecipe.execute.execute', 'slapos.recipe.librecipe.execute.execute',
[str(i) for i in commandline]) [str(i) for i in commandline])
......
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