Commit 153df0a2 by Jens Rantil

module(nagios): don't catch `SystemExit`

If we do this, we risk outputting two JSON payloads, which will be
unparsable.
parent 8f2580fc
......@@ -214,7 +214,7 @@ def main():
m = int(minutes)
if not isinstance(m, types.IntType):
module.fail_json(msg='minutes must be a number')
except:
except Exception:
module.fail_json(msg='invalid entry for minutes')
##################################################################
......
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