module(nagios): don't catch SystemExit
If we do this, we risk outputting two JSON payloads, which will be unparsable.
This commit is contained in:
parent
c475814519
commit
71590827ab
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ def main():
|
||||||
m = int(minutes)
|
m = int(minutes)
|
||||||
if not isinstance(m, types.IntType):
|
if not isinstance(m, types.IntType):
|
||||||
module.fail_json(msg='minutes must be a number')
|
module.fail_json(msg='minutes must be a number')
|
||||||
except:
|
except Exception:
|
||||||
module.fail_json(msg='invalid entry for minutes')
|
module.fail_json(msg='invalid entry for minutes')
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
||||||
|
|
Loading…
Reference in a new issue