monit startup fix

reviewable/pr18780/r1
Ryan G. Hunter 9 years ago
parent e8427cb32a
commit a59aa2cb34

@ -127,9 +127,8 @@ def main():
module.exit_json(changed=True) module.exit_json(changed=True)
status = run_command('reload') status = run_command('reload')
if status == '': if status == '':
module.fail_json(msg='%s process not configured with monit' % name, name=name, state=state) wait_for_monit_to_stop_pending()
else: module.exit_json(changed=True, name=name, state=state)
module.exit_json(changed=True, name=name, state=state)
module.exit_json(changed=False, name=name, state=state) module.exit_json(changed=False, name=name, state=state)
wait_for_monit_to_stop_pending() wait_for_monit_to_stop_pending()

Loading…
Cancel
Save