Fix shebang sanity test module identification.

pull/68298/head
Matt Clay 4 years ago committed by Matt Martz
parent aaf575f0b2
commit 6fde9b3a23

@ -0,0 +1,2 @@
bugfixes:
- ansible-test - The shebang sanity test now correctly identifies modules in subdirectories in collections.

@ -88,7 +88,7 @@ def main():
'test/integration/targets/module_precedence/lib_with_extension',
):
is_module = True
elif dirname == 'plugins/modules':
elif path.startswith('plugins/modules/'):
is_module = True
if is_module:

Loading…
Cancel
Save