You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returns code_kwargs, which contains the raw binary zip file when this module is invoked with zip_file and code changes are made. Modules are only supposed to return text data encoded with UTF-8, so this can generate a warning in recent versions of ansible-core that will become a hard error in 2.18.
This doesn't seem like a particularly useful thing to return, but if you want to continue returning it you should encode the binary data as base64.
PLAY [localhost] ***************************************************************TASK [Create zip archive] ******************************************************changed: [localhost] TASK [Create lambda function] **************************************************changed: [localhost] TASK [Create zip archive] ******************************************************changed: [localhost] TASK [Update lambda function] **************************************************[DEPRECATION WARNING]: Module "amazon.aws.lambda" returned non UTF-8 data in the JSON response. This will become an error in the future. This feature will be removed in version 2.18. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.changed: [localhost] PLAY RECAP *********************************************************************localhost : ok=4 changed=4 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
Code of Conduct
I agree to follow the Ansible Code of Conduct
The text was updated successfully, but these errors were encountered:
Summary
amazon.aws/plugins/modules/lambda.py
Line 811 in 8592624
code_kwargs
, which contains the raw binary zip file when this module is invoked withzip_file
and code changes are made. Modules are only supposed to return text data encoded with UTF-8, so this can generate a warning in recent versions ofansible-core
that will become a hard error in 2.18.This doesn't seem like a particularly useful thing to return, but if you want to continue returning it you should encode the binary data as base64.
Issue Type
Bug Report
Component Name
lambda
Ansible Version
Collection Versions
AWS SDK versions
Configuration
OS / Environment
No response
Steps to Reproduce
Expected Results
No warnings.
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: