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: if not linenos:
self.errors.append('Did not find a module_utils import') self.errors.append('Did not find a module_utils import')
elif not found_basic: 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') 'import')
return linenos return linenos