diff --git a/ansible_testing/modules.py b/ansible_testing/modules.py index 527bff816d..2afa370660 100644 --- a/ansible_testing/modules.py +++ b/ansible_testing/modules.py @@ -227,7 +227,7 @@ class ModuleValidator(Validator): main = self._find_main_call() for mu in module_utils: if mu < main - 10: - self.errors.warnings('module_utils import not near main()') + self.warnings.append('module_utils import not near main()') self._find_has_import()