-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lambda
can return invalid binary data
#2307
Labels
Comments
patchback bot
pushed a commit
that referenced
this issue
Nov 18, 2024
SUMMARY Fixes #2307. Ansible previously generated warning is module output contained non UTF-8 data. Starting with version 2.18, it now throws an error, which prevents successful execution of lambda module. ISSUE TYPE Bugfix Pull Request COMPONENT NAME lambda ADDITIONAL INFORMATION Reviewed-by: GomathiselviS <[email protected]> Reviewed-by: Mike Graves <[email protected]> (cherry picked from commit a39b3e0)
patchback bot
pushed a commit
that referenced
this issue
Nov 18, 2024
SUMMARY Fixes #2307. Ansible previously generated warning is module output contained non UTF-8 data. Starting with version 2.18, it now throws an error, which prevents successful execution of lambda module. ISSUE TYPE Bugfix Pull Request COMPONENT NAME lambda ADDITIONAL INFORMATION Reviewed-by: GomathiselviS <[email protected]> Reviewed-by: Mike Graves <[email protected]> (cherry picked from commit a39b3e0)
softwarefactory-project-zuul bot
pushed a commit
that referenced
this issue
Nov 18, 2024
This is a backport of PR #2386 as merged into main (a39b3e0). SUMMARY Fixes #2307. Ansible previously generated warning is module output contained non UTF-8 data. Starting with version 2.18, it now throws an error, which prevents successful execution of lambda module. ISSUE TYPE Bugfix Pull Request COMPONENT NAME lambda ADDITIONAL INFORMATION Reviewed-by: Alina Buzachis
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: