Commit ec6f62ad authored by Alain Takoudjou's avatar Alain Takoudjou

pbs recipe: Don't fail to deploy pbs slave if notification-url is empty

parent dbcbb05c
...@@ -303,7 +303,7 @@ class Recipe(GenericSlapRecipe, Notify, Callback): ...@@ -303,7 +303,7 @@ class Recipe(GenericSlapRecipe, Notify, Callback):
executable=rdiff_wrapper, executable=rdiff_wrapper,
log=os.path.join(self.options['feeds'], entry['notification-id']), log=os.path.join(self.options['feeds'], entry['notification-id']),
title=entry.get('title', slave_id), title=entry.get('title', slave_id),
notification_url=entry['notify'], notification_url=entry['notify'] or '',
feed_url='%s/get/%s' % (self.options['notifier-url'], entry['notification-id']), feed_url='%s/get/%s' % (self.options['notifier-url'], entry['notification-id']),
pidfile=os.path.join(self.options['run-directory'], '%s.pid' % slave_id), pidfile=os.path.join(self.options['run-directory'], '%s.pid' % slave_id),
instance_root_name=self.options.get('instance-root-name', None), instance_root_name=self.options.get('instance-root-name', None),
......
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