1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Report missing ansible.module_utils.basic import as a warning (#31)

For new Networking modules we import via another library
See sivel/ansible-testing/issue/30
This commit is contained in:
John R Barker 2016-07-06 18:52:51 +01:00 committed by John Barker
parent 43c028d52d
commit 247066e6a8

View file

@ -255,7 +255,7 @@ class ModuleValidator(Validator):
if not linenos:
self.errors.append('Did not find a module_utils import')
elif not found_basic:
self.errors.append('Did not find "ansible.module_utils.basic" '
self.warnings.append('Did not find "ansible.module_utils.basic" '
'import')
return linenos