diff options
author | Felix Fontein <felix@fontein.de> | 2023-02-08 09:24:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-08 09:24:20 +0100 |
commit | 079383384790310dd6722b08ac18990e2a4d0ed9 (patch) | |
tree | 120057341d4f74bd2cfcf9f28fd882a674a2abb2 /test | |
parent | Enable pylint rules to detect pointless statements (#79944) (diff) | |
download | ansible-079383384790310dd6722b08ac18990e2a4d0ed9.tar.xz ansible-079383384790310dd6722b08ac18990e2a4d0ed9.zip |
ansible-test - Fix collection delegation (#79947)
Diffstat (limited to 'test')
-rw-r--r-- | test/lib/ansible_test/_internal/payload.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/lib/ansible_test/_internal/payload.py b/test/lib/ansible_test/_internal/payload.py index efff3b60ea..87af099257 100644 --- a/test/lib/ansible_test/_internal/payload.py +++ b/test/lib/ansible_test/_internal/payload.py @@ -91,6 +91,8 @@ def create_payload(args: CommonConfig, dst_path: str) -> None: """ if tar_info.path.startswith('ansible/'): mode = permissions.get(os.path.relpath(tar_info.path, 'ansible')) + elif data_context().content.collection and is_subdir(tar_info.path, data_context().content.collection.directory): + mode = permissions.get(os.path.relpath(tar_info.path, data_context().content.collection.directory)) else: mode = None |