From bee443c983fbd1e9795ec3f288d7c68a28a61639 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 --- lib/ansible/modules/extras/monitoring/nagios.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/monitoring/nagios.py b/lib/ansible/modules/extras/monitoring/nagios.py index cecef5f51b1..e3c1a430d7b 100644 --- a/lib/ansible/modules/extras/monitoring/nagios.py +++ b/lib/ansible/modules/extras/monitoring/nagios.py @@ -265,7 +265,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)