mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-02-04 07:51:50 +00:00
Merge 85c975d368 into 95b24ac3fe
This commit is contained in:
commit
7a688e8be2
1 changed files with 9 additions and 0 deletions
|
|
@ -39,6 +39,8 @@ options:
|
|||
author:
|
||||
- Darryl Stoflet (@dstoflet)
|
||||
- Simon Kelly (@snopoke)
|
||||
requirements:
|
||||
- Monit. Support for versions 5.18 and older is deprecated and will be removed in community.general 13.0.0.
|
||||
"""
|
||||
|
||||
EXAMPLES = r"""
|
||||
|
|
@ -125,6 +127,13 @@ class Monit:
|
|||
self._raw_version = None
|
||||
self._status_change_retry_count = 6
|
||||
|
||||
if self.monit_version() <= (5, 18):
|
||||
module.deprecate(
|
||||
"Support for monit 5.18 and older is deprecated and will be removed in community.general 13.0.0.",
|
||||
version="13.0.0",
|
||||
collection_name="community.general",
|
||||
)
|
||||
|
||||
def monit_version(self):
|
||||
if self._monit_version is None:
|
||||
self._raw_version, version = self._get_monit_version()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue