Skip to content

Commit

Permalink
more concise of retrieving stack trace
Browse files Browse the repository at this point in the history
  • Loading branch information
taehopark32 committed Jun 22, 2023
1 parent 8cfeaae commit 90476f3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions plugins/modules/lambda_execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,7 @@ def main():

error_data = {
# format the stacktrace sent back as an array into a multiline string
"trace": "\n".join(
[
list(results.get("output", {}).get("stackTrace", []))
]
),
"trace": "\n".join(results.get("output", {}).get("stackTrace", [])),
"errmsg": results["output"].get("errorMessage"),
"type": results["output"].get("errorType"),
}
Expand Down

0 comments on commit 90476f3

Please sign in to comment.