mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Ensure docs are valid before checking deprecation (#36160)
This commit is contained in:
parent
97573d8b0c
commit
3e22efa0ba
1 changed files with 1 additions and 1 deletions
|
@ -1235,7 +1235,7 @@ class ModuleValidator(Validator):
|
||||||
doc_info, docs = self._validate_docs()
|
doc_info, docs = self._validate_docs()
|
||||||
|
|
||||||
# See if current version => deprecated.removed_in, ie, should be docs only
|
# See if current version => deprecated.removed_in, ie, should be docs only
|
||||||
if 'deprecated' in docs and docs['deprecated'] is not None:
|
if docs and 'deprecated' in docs and docs['deprecated'] is not None:
|
||||||
removed_in = docs.get('deprecated')['removed_in']
|
removed_in = docs.get('deprecated')['removed_in']
|
||||||
strict_ansible_version = StrictVersion('.'.join(ansible_version.split('.')[:2]))
|
strict_ansible_version = StrictVersion('.'.join(ansible_version.split('.')[:2]))
|
||||||
end_of_deprecation_should_be_docs_only = strict_ansible_version >= removed_in
|
end_of_deprecation_should_be_docs_only = strict_ansible_version >= removed_in
|
||||||
|
|
Loading…
Reference in a new issue