Fix shebang sanity test module identification. (#69404)

(cherry picked from commit 9d0113be5c)

Co-authored-by: Matt Clay <matt@mystile.com>
pull/69999/head
Felix Fontein 5 years ago committed by GitHub
parent 380be7581e
commit c43b03abe9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

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

Loading…
Cancel
Save