Fix error 'fail_json() takes exactly 1 argument'

Fixes bug #1257
This commit is contained in:
Michael Weber 2015-12-01 01:56:23 -08:00
parent 3c4f954f0f
commit fba8c9f8a7

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)