mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Don't allow an empty version_added
This commit is contained in:
parent
8a02f894a6
commit
35f5ca8295
1 changed files with 2 additions and 1 deletions
|
@ -1418,7 +1418,8 @@ class ModuleValidator(Validator):
|
|||
version_added = StrictVersion(
|
||||
str(details.get('version_added', '0.0'))
|
||||
)
|
||||
except ValueError:
|
||||
version_added.version
|
||||
except (ValueError, AttributeError):
|
||||
version_added = details.get('version_added', '0.0')
|
||||
self.reporter.error(
|
||||
path=self.object_path,
|
||||
|
|
Loading…
Reference in a new issue