Skip to content

Commit 76c7405

Browse files
committed
add monit version to successful exit
1 parent 05300a2 commit 76c7405

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

plugins/modules/monit.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,12 @@ def exit_fail(self, msg, status=None, **kwargs):
153153
self.module.fail_json(**kwargs)
154154

155155
def exit_success(self, state):
156-
self.module.exit_json(changed=True, name=self.process_name, state=state)
156+
self.module.exit_json(
157+
changed=True,
158+
name=self.process_name,
159+
monit_version=self._raw_version,
160+
state=state,
161+
)
157162

158163
@property
159164
def command_args(self):

0 commit comments

Comments
 (0)