1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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

This commit is contained in:
James Cammarata 2014-05-08 16:46:32 -05:00
parent a969941b85
commit b97f087f18

View file

@ -143,7 +143,7 @@ def main():
if module.check_mode: if module.check_mode:
module.exit_json(changed=True) module.exit_json(changed=True)
status = run_command('monitor') 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.exit_json(changed=True, name=name, state=state)
module.fail_json(msg='%s process not monitored' % name, status=status) module.fail_json(msg='%s process not monitored' % name, status=status)