mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
actions/unarchive: fix unarchive from remote url (#17126)
* actions/unarchive: fix unarchive from remote url Currently unarchive from remote url does not work because the core unarchive module was updated to support 'remote_src' [1], but the unarchive action plugin was not updated for this. This causes failures because the action plugin assumes it needs to copy a file to the remote server, but in the case of downloading a file from a remote url a local file does not exist, so an error occurs when the file is not found. [1] https://github.com/ansible/ansible-modules-core/commit/467516e * test_unarchive: fix test with wrong remote_src use The non-ascii filenames test had improperly set remote_src=yes even though it was actually copying the file from the local machine (i.e. the file did not already exist remotely). This test was passing until the remote_src behavior of unarchive was fixed in 276550f.
This commit is contained in:
committed by
James Cammarata
parent
c5b5a20031
commit
b817f1f3ea
@@ -299,7 +299,7 @@
|
||||
src: "test-unarchive-nonascii-くらとみ.tar.gz"
|
||||
dest: "{{ output_dir }}/test-unarchive-nonascii-くらとみ-tar-gz"
|
||||
mode: "u+rwX,go+rX"
|
||||
remote_src: yes
|
||||
remote_src: no
|
||||
register: nonascii_result0
|
||||
|
||||
- name: Check that file is really there
|
||||
|
||||
Reference in New Issue
Block a user