Skip to content

Commit

Permalink
Lambda: Determine Lambda image deterministically
Browse files Browse the repository at this point in the history
  • Loading branch information
jakob-keller committed Feb 16, 2025
1 parent fc7bcea commit bc53e8b
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions moto/awslambda/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1023,13 +1023,11 @@ def _invoke_lambda(self, event: Optional[str] = None) -> Tuple[str, bool, str]:
# - lambci/lambda (the repo with older/outdated AWSLambda images
#
# We'll cycle through all of them - when we find the repo that contains our image, we use it
image_repos = set(
[
settings.moto_lambda_image(),
"mlupin/docker-lambda",
"lambci/lambda",
]
)
image_repos = { # dict maintains insertion order
settings.moto_lambda_image(): None,
"mlupin/docker-lambda": None,
"lambci/lambda": None,
}
for image_repo in image_repos:
image_ref = (
image_repo
Expand Down

0 comments on commit bc53e8b

Please sign in to comment.