Merge pull request #1939 from diefans/devel

proper bin path now called
This commit is contained in:
Daniel Hokka Zakrisson 2013-01-29 05:02:21 -08:00
commit 03cf5b2777

View file

@ -58,7 +58,7 @@ def main():
SUPERVISORCTL = module.get_bin_path('supervisorctl', True) SUPERVISORCTL = module.get_bin_path('supervisorctl', True)
rc, out, err = module.run_command('%s status' % supervisorctl) rc, out, err = module.run_command('%s status' % SUPERVISORCTL)
present = name in out present = name in out
if state == 'present': if state == 'present':
@ -73,7 +73,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 status %s' % (supervisorctl, name)) rc, out, err = module.run_command('%s status %s' % (SUPERVISORCTL, name))
running = 'RUNNING' in out running = 'RUNNING' in out
if running and state == 'started': if running and state == 'started':