Skip to content

Commit

Permalink
Preserve permissions when copying lambdas (ansible-collections#167)
Browse files Browse the repository at this point in the history
ansible/ansible/pull/69993 changed copy's mode behaviour. Lambda tests
which copy files to '{{ outpur_dir }}' before zipping are now being
unzipped by Lambda with incorrect permissions, causing test failures.

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@1b1dbee
  • Loading branch information
jillr authored and goneri committed Sep 21, 2022
1 parent ec55fc7 commit 5a7a7e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/integration/targets/lambda_policy/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
copy:
src: mini_http_lambda.py
dest: '{{output_dir}}/mini_http_lambda.py'
mode: preserve
- name: bundle lambda into a zip
register: zip_res
archive:
Expand Down

0 comments on commit 5a7a7e2

Please sign in to comment.