diff options
author | Jens Rantil <jens.rantil@telavox.se> | 2013-12-04 13:55:16 +0100 |
---|---|---|
committer | Jens Rantil <jens.rantil@telavox.se> | 2013-12-04 13:57:55 +0100 |
commit | 153df0a23ee169bf20c4b8c5b6356739286b74e4 (patch) | |
tree | 729ef9bf603881f752fdfdd27af35adf7928ccfd /library | |
parent | module(apt_key): don't catch `SystemExit` (diff) | |
download | ansible-153df0a23ee169bf20c4b8c5b6356739286b74e4.tar.xz ansible-153df0a23ee169bf20c4b8c5b6356739286b74e4.zip |
module(nagios): don't catch `SystemExit`
If we do this, we risk outputting two JSON payloads, which will be
unparsable.
Diffstat (limited to 'library')
-rw-r--r-- | library/monitoring/nagios | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/monitoring/nagios b/library/monitoring/nagios index a66583b0c6..9219766b86 100644 --- a/library/monitoring/nagios +++ b/library/monitoring/nagios @@ -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') ################################################################## |