diff --git a/plugins/modules/lambda_execute.py b/plugins/modules/lambda_execute.py index f765554583..10d38d1f59 100644 --- a/plugins/modules/lambda_execute.py +++ b/plugins/modules/lambda_execute.py @@ -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"), }