ansible-test - Fix collection delegation (#79947)

pull/79953/head
Felix Fontein 3 years ago committed by GitHub
parent 497d296ed6
commit 0793833847
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save