Merge pull request #1310 from michaelw/patch-1

Fix error 'fail_json() takes exactly 1 argument'
This commit is contained in:
Brian Coca 2015-12-01 09:32:12 -08:00
commit 109f954a83

View file

@ -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)