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

removed requirements on WANT_JSON and POWERSHELL_COMMON (#27679)

This commit is contained in:
Jordan Borean 2017-08-03 11:47:17 +10:00 committed by Matt Davis
parent 9498b96874
commit 8bb10bb225

View file

@ -636,18 +636,12 @@ class ModuleValidator(Validator):
) )
def _find_ps_replacers(self): def _find_ps_replacers(self):
if 'WANT_JSON' not in self.text: ps_module_util_template = '#Requires -Module Ansible.ModuleUtils.'
self.reporter.error( if ps_module_util_template not in self.text and REPLACER_WINDOWS not in self.text:
path=self.object_path,
code=206,
msg='WANT_JSON not found in module'
)
if REPLACER_WINDOWS not in self.text:
self.reporter.error( self.reporter.error(
path=self.object_path, path=self.object_path,
code=207, code=207,
msg='"%s" not found in module' % REPLACER_WINDOWS msg='"%s" not found in module' % ps_module_util_template
) )
def _find_ps_docs_py_file(self): def _find_ps_docs_py_file(self):