mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-03 07:41:30 -07:00
No RETURN should be an error for new modules
This commit is contained in:
parent
69ec1e8e6a
commit
bc51bb97dd
1 changed files with 4 additions and 1 deletions
|
@ -400,6 +400,9 @@ class ModuleValidator(Validator):
|
||||||
if not bool(examples):
|
if not bool(examples):
|
||||||
self.errors.append('No EXAMPLES provided')
|
self.errors.append('No EXAMPLES provided')
|
||||||
if not bool(ret):
|
if not bool(ret):
|
||||||
|
if self._is_new_module():
|
||||||
|
self.errors.append('No RETURN provided')
|
||||||
|
else:
|
||||||
self.warnings.append('No RETURN provided')
|
self.warnings.append('No RETURN provided')
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue