From fba8c9f8a7704874f33b260f9d92c942fadb99c4 Mon Sep 17 00:00:00 2001 From: Michael Weber Date: Tue, 1 Dec 2015 01:56:23 -0800 Subject: [PATCH] Fix error 'fail_json() takes exactly 1 argument' Fixes bug #1257 --- monitoring/nagios.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitoring/nagios.py b/monitoring/nagios.py index ee67a3ae20b..b55a374b34f 100644 --- a/monitoring/nagios.py +++ b/monitoring/nagios.py @@ -266,7 +266,7 @@ def main(): module.fail_json(msg='no command passed for command action') ################################################################## if not cmdfile: - module.fail_json('unable to locate nagios.cfg') + module.fail_json(msg='unable to locate nagios.cfg') ################################################################## ansible_nagios = Nagios(module, **module.params)