Commit b97f087f by James Cammarata

Fixing a typo in the monit module (status and not status())

parent a969941b
......@@ -143,7 +143,7 @@ def main():
if module.check_mode:
module.exit_json(changed=True)
status = run_command('monitor')
if status() not in ['not monitored']:
if status not in ['not monitored']:
module.exit_json(changed=True, name=name, state=state)
module.fail_json(msg='%s process not monitored' % name, status=status)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment