From 90476f359136c86a03a88169a82b38a6a8f22ce0 Mon Sep 17 00:00:00 2001 From: Taeho Park Date: Thu, 22 Jun 2023 12:07:31 -0400 Subject: [PATCH] more concise of retrieving stack trace --- plugins/modules/lambda_execute.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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"), }