Commit 1b052f42 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Don't log SystemExit exception in ganeti-watcher

Reviewed-by: iustinp
parent fc428e32
......@@ -477,6 +477,8 @@ def main():
# Just exit if there's no configuration
sys.exit(constants.EXIT_SUCCESS)
watcher.Run()
except SystemExit:
raise
except NotMasterError:
logging.debug("Not master, exiting")
sys.exit(constants.EXIT_NOTMASTER)
......
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