diff options
author | René Moser <mail@renemoser.net> | 2016-05-03 22:51:26 +0200 |
---|---|---|
committer | René Moser <mail@renemoser.net> | 2016-05-03 22:51:26 +0200 |
commit | eab58929448a1be6021846622b44b3289590fcc8 (patch) | |
tree | 3fb0657e4f8dcb3047b60236b5cb2626e6b8c39a | |
parent | 675d778b50257a72290a68f4f644a4f630e85ce4 (diff) | |
parent | a59aa2cb341df237c5a237ac1d47c0ac48430ba0 (diff) | |
download | ansible-modules-extras-eab58929448a1be6021846622b44b3289590fcc8.tar.gz |
Merge pull request #1867 from Censio/rhunter-monit-startup
monit startup fix
-rw-r--r-- | monitoring/monit.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/monitoring/monit.py b/monitoring/monit.py index dda3f82d..2983d5e4 100644 --- a/monitoring/monit.py +++ b/monitoring/monit.py @@ -127,9 +127,8 @@ def main(): module.exit_json(changed=True) status = run_command('reload') if status == '': - module.fail_json(msg='%s process not configured with monit' % name, name=name, state=state) - else: - module.exit_json(changed=True, name=name, state=state) + wait_for_monit_to_stop_pending() + module.exit_json(changed=True, name=name, state=state) module.exit_json(changed=False, name=name, state=state) wait_for_monit_to_stop_pending() |