-
Notifications
You must be signed in to change notification settings - Fork 341
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 execute stack trace should be not formatted with extra space #1615
Lambda execute stack trace should be not formatted with extra space #1615
Conversation
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 4m 11s |
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 4m 52s |
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 4m 47s |
Co-authored-by: Jill R <4121322+jillr@users.noreply.github.com>
plugins/modules/lambda_execute.py
Outdated
"trace": "\n".join( | ||
[ | ||
" ".join([str(x) for x in line]) # cast line numbers to strings | ||
for line in results.get("output", {}).get("stackTrace", []) | ||
list(results.get("output", {}).get("stackTrace", [])) | ||
] | ||
), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this can just be replaced with:
"trace": "\n".join(results.get("output", {}).get("stackTrace", []))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, worth noting that [i for i in somelist]
is different than [list(somelist)]
as the latter will produce a nested list.
Build failed. ❌ ansible-galaxy-importer ERROR Failed to update project ansible-collections/amazon.aws in 0s |
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 4m 11s |
Build failed (gate pipeline). For information on how to proceed, see https://ansible.softwarefactory-project.io/zuul/buildset/a69d2af65d2d49138a7f7cd106fc74f2 ✔️ ansible-galaxy-importer SUCCESS in 4m 23s |
We should be able to regate this when #1625 is merged. |
regate |
Build succeeded (gate pipeline). ✔️ ansible-galaxy-importer SUCCESS in 4m 36s |
Backport to stable-5: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 271523e on top of patchback/backports/stable-5/271523ea97f73f0e4c5a027eac4f4fc72f4b7093/pr-1615 Backporting merged PR #1615 into main
🤖 @patchback |
Backport to stable-6: 💚 backport PR created✅ Backport PR branch: Backported as #1628 🤖 @patchback |
…1615) Lambda execute stack trace should be not formatted with extra space SUMMARY Fixes #1497 ISSUE TYPE Bugfix Pull Request COMPONENT NAME plugins/modules/lambda_execute.py ADDITIONAL INFORMATION Reviewed-by: Jill R Reviewed-by: Bikouo Aubin Reviewed-by: Alina Buzachis Reviewed-by: Mike Graves <mgraves@redhat.com> (cherry picked from commit 271523e)
Docs Build 📝Thank you for contribution!✨ This PR has been merged and your docs changes will be incorporated when they are next published. |
…nsible-collections#1615) Lambda execute stack trace should be not formatted with extra space SUMMARY Fixes ansible-collections#1497 ISSUE TYPE Bugfix Pull Request COMPONENT NAME plugins/modules/lambda_execute.py ADDITIONAL INFORMATION Reviewed-by: Jill R Reviewed-by: Bikouo Aubin Reviewed-by: Alina Buzachis Reviewed-by: Mike Graves <mgraves@redhat.com> (cherry picked from commit 271523e)
…1615) (#1634) [manual backport stable-5] Lambda execute stack trace should be not formatted with extra space …#1615) Lambda execute stack trace should be not formatted with extra space SUMMARY Fixes #1497 ISSUE TYPE Bugfix Pull Request COMPONENT NAME plugins/modules/lambda_execute.py ADDITIONAL INFORMATION Reviewed-by: Jill R Reviewed-by: Bikouo Aubin Reviewed-by: Alina Buzachis Reviewed-by: Mike Graves mgraves@redhat.com (cherry picked from commit 271523e) SUMMARY ISSUE TYPE Bugfix Pull Request Docs Pull Request Feature Pull Request New Module Pull Request COMPONENT NAME ADDITIONAL INFORMATION Reviewed-by: Mike Graves <mgraves@redhat.com> Reviewed-by: Helen Bailey <hebailey@redhat.com>
…1615) (#1628) [PR #1615/271523ea backport][stable-6] Lambda execute stack trace should be not formatted with extra space This is a backport of PR #1615 as merged into main (271523e). SUMMARY Fixes #1497 ISSUE TYPE Bugfix Pull Request COMPONENT NAME plugins/modules/lambda_execute.py ADDITIONAL INFORMATION Reviewed-by: Helen Bailey <hebailey@redhat.com> Reviewed-by: Alina Buzachis
SUMMARY
Fixes #1497
ISSUE TYPE
COMPONENT NAME
plugins/modules/lambda_execute.py
ADDITIONAL INFORMATION