aws_s3: don't decrypt file before uploading - fixes #39287 (#39634) (#41205)

* aws_s3: don't decrypt file before uploading - fixes #39287 (#39634)

* aws_s3: do not decrypt file before uploading to bucket

* changelog

(cherry picked from commit 387c37e255)

* changelog format tweak
pull/41305/head
Sloane Hertel 7 years ago committed by Matt Davis
parent 394753b918
commit 125d1e3867

@ -0,0 +1,3 @@
---
bugfixes:
- aws_s3 - fix decrypting vault files (https://github.com/ansible/ansible/pull/39634)

@ -47,7 +47,7 @@ class ActionModule(ActionBase):
# For backward compatibility check if the file exists on the remote; it should take precedence # For backward compatibility check if the file exists on the remote; it should take precedence
if not self._remote_file_exists(source): if not self._remote_file_exists(source):
try: try:
source = self._loader.get_real_file(self._find_needle('files', source)) source = self._loader.get_real_file(self._find_needle('files', source), decrypt=False)
new_module_args['src'] = source new_module_args['src'] = source
except AnsibleFileNotFound as e: except AnsibleFileNotFound as e:
# module handles error message for nonexistent files # module handles error message for nonexistent files

Loading…
Cancel
Save