diff --git a/ansible_testing/modules.py b/ansible_testing/modules.py index 1196d699e9..928ad176d3 100644 --- a/ansible_testing/modules.py +++ b/ansible_testing/modules.py @@ -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)