8000 fix error in deleting lambda configuration keys by dfangl · Pull Request #6627 · localstack/localstack · GitHub
[go: up one dir, main page]

Skip to content

fix error in deleting lambda configuration keys #6627

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix result of get function when package type is image but layers are …
…not available
  • Loading branch information
dfangl committed Aug 9, 2022
commit f81a492c2fbce47723753ad0b372d5784910aefc
4 changes: 2 additions & 2 deletions localstack/services/awslambda/lambda_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1066,8 +1066,8 @@ def lookup_function(function, region, request_url):
if lambda_details.package_type == "Image":
result["Code"] = lambda_details.code
result["Configuration"]["CodeSize"] = 0
del result["Configuration"]["Handler"]
del result["Configuration"]["Layers"]
result["Configuration"].pop("Handler", None)
result["Configuration"].pop("Layers", None)

if lambda_details.concurrency is not None:
result["Concurrency"] = lambda_details.concurrency
Expand Down
0