mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
Make module_utils imports not at bottom a warning
This commit is contained in:
parent
af6dde6eae
commit
58703e47ac
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ class ModuleValidator(Validator):
|
||||||
main = self._find_main_call()
|
main = self._find_main_call()
|
||||||
for mu in module_utils:
|
for mu in module_utils:
|
||||||
if mu < main - 10:
|
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()
|
self._find_has_import()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue