From 58703e47acb8d8f2f9eef96c92310576af85a505 Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Mon, 18 May 2015 15:52:30 -0500 Subject: [PATCH] Make module_utils imports not at bottom a warning --- ansible_testing/modules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible_testing/modules.py b/ansible_testing/modules.py index a685fcd9091..527bff816dd 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.append('module_utils import not near main()') + self.errors.warnings('module_utils import not near main()') self._find_has_import()