awslambda: return actual result in sync invoke
Return actual output of the Lambda instead of echoing the input.
This commit is contained in:
parent
b54d3b5a11
commit
5ba786d97a
1 changed files with 1 additions and 1 deletions
|
|
@ -472,7 +472,7 @@ class LambdaFunction(BaseModel):
|
|||
payload["result"] = response_headers["x-amz-log-result"]
|
||||
result = res.encode("utf-8")
|
||||
else:
|
||||
result = json.dumps(payload)
|
||||
result = res
|
||||
if errored:
|
||||
response_headers["x-amz-function-error"] = "Handled"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue