diff options
author | u625030 <twan@roto.org> | 2017-11-09 21:34:29 +0100 |
---|---|---|
committer | Jordan Borean <jborean93@gmail.com> | 2017-11-10 06:34:29 +1000 |
commit | 6d597ac05a799aad2c9cecc1eb966d77af6d78f8 (patch) | |
tree | 1b3a69ce3f867089a2ad4470dbb0edcbebe80b3d | |
parent | 9c0275a879d96eb9aee5e66987b1f07a013f23db (diff) | |
download | ansible-6d597ac05a799aad2c9cecc1eb966d77af6d78f8.tar.gz |
Update win_copy for #32677 (#32682)
* Update win_copy for #32677
enable large zip file support in win_copy
* Update win_copy.py
-rw-r--r-- | lib/ansible/plugins/action/win_copy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/plugins/action/win_copy.py b/lib/ansible/plugins/action/win_copy.py index 09cca23c15..b5013812f8 100644 --- a/lib/ansible/plugins/action/win_copy.py +++ b/lib/ansible/plugins/action/win_copy.py @@ -233,7 +233,7 @@ class ActionModule(ActionBase): def _create_zip_tempfile(self, files, directories): tmpdir = tempfile.mkdtemp() zip_file_path = os.path.join(tmpdir, "win_copy.zip") - zip_file = zipfile.ZipFile(zip_file_path, "w") + zip_file = zipfile.ZipFile(zip_file_path, "w", zipfile.ZIP_STORED, True) # encoding the file/dir name with base64 so Windows can unzip a unicode # filename and get the right name, Windows doesn't handle unicode names |