Commit 69bd6500 authored by Alain Takoudjou's avatar Alain Takoudjou

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

parent 35979a05
......@@ -156,15 +156,15 @@ class MonitorPromiseLauncher(object):
)"Checking promises...")
exit_code = 0
except PromiseError, e:
# error was already logged
exit_code = 1
os.remove(self.config.pid_path)"Finished promises.")
return exit_code
def main():
arg_parser = getArgumentParser()
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