Fix shebang sanity test module identification.
This commit is contained in:
parent
aaf575f0b2
commit
6fde9b3a23
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/ansible-test-shebang-sanity.yml
Normal file
2
changelogs/fragments/ansible-test-shebang-sanity.yml
Normal file
|
@ -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…
Add table
Reference in a new issue