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

Merge pull request #3501 from cristobalrosa/devel

Devel
This commit is contained in:
Michael DeHaan 2013-07-11 06:20:48 -07:00
commit 4971736660

View file

@ -87,7 +87,7 @@ def main():
module.exit_json(changed=False, name=name, state=state) module.exit_json(changed=False, name=name, state=state)
rc, out, err = module.run_command('%s summary | grep %s' % (MONIT, name)) rc, out, err = module.run_command('%s summary | grep %s' % (MONIT, name))
running = 'Running' in out running = 'running' in out.lower()
if running and (state == 'started' or state == 'monitored'): if running and (state == 'started' or state == 'monitored'):
module.exit_json(changed=False, name=name, state=state) module.exit_json(changed=False, name=name, state=state)