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
@ -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…
Reference in New Issue
Block a user