Commit 69bd6500 by Alain Takoudjou

monitor.runpromise: exit with non zero code if a promise has failed

1 parent 35979a05
......@@ -156,15 +156,15 @@ class MonitorPromiseLauncher(object):
)
self.logger.info("Checking promises...")
exit_code = 0
try:
promise_launcher.run()
except PromiseError, e:
#self.logger.exception(e)
# error was already logged
pass
exit_code = 1
os.remove(self.config.pid_path)
self.logger.info("Finished promises.")
return exit_code
def main():
arg_parser = getArgumentParser()
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!