mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
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:
@@ -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')
|
||||
|
||||
##################################################################
|
||||
|
||||
Reference in New Issue
Block a user