Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment