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.
  • Loading branch information
jillr authored Jul 28, 2020
1 parent 3908499 commit 1b1dbee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/integration/targets/aws_lambda/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
copy:
src: mini_lambda.py
dest: '{{output_dir}}/mini_lambda.py'
mode: preserve
- name: bundle lambda into a zip
register: zip_res
archive:
Expand Down
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 1b1dbee

Please sign in to comment.