Fix ansible-test tar format handling.

pull/66939/head
Matt Clay 6 years ago
parent 4fd2dce7f3
commit 49d8d5ae33

@ -0,0 +1,2 @@
bugfixes:
- ansible-test now uses GNU tar format instead of the Python default when creating payloads for remote systems

@ -97,7 +97,7 @@ def create_payload(args, dst_path): # type: (CommonConfig, str) -> None
start = time.time()
with tarfile.TarFile.gzopen(dst_path, mode='w', compresslevel=4) as tar:
with tarfile.TarFile.open(dst_path, mode='w:gz', compresslevel=4, format=tarfile.GNU_FORMAT) as tar:
for src, dst in files:
display.info('%s -> %s' % (src, dst), verbosity=4)
tar.add(src, dst, filter=filters.get(dst))

Loading…
Cancel
Save