mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-02 16:53:11 +00:00
No RETURN should be an error for new modules
This commit is contained in:
@@ -400,7 +400,10 @@ class ModuleValidator(Validator):
|
||||
if not bool(examples):
|
||||
self.errors.append('No EXAMPLES provided')
|
||||
if not bool(ret):
|
||||
self.warnings.append('No RETURN provided')
|
||||
if self._is_new_module():
|
||||
self.errors.append('No RETURN provided')
|
||||
else:
|
||||
self.warnings.append('No RETURN provided')
|
||||
else:
|
||||
try:
|
||||
yaml.safe_load(ret)
|
||||
|
||||
Reference in New Issue
Block a user