diff --git a/monitoring/monit b/monitoring/monit index 86903e0e400..558f1e696f2 100644 --- a/monitoring/monit +++ b/monitoring/monit @@ -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)