Skip to content

Commit

Permalink
LAMBDA: use arbitrary docker image for lambda tests via MOTO_DOCKER_L…
Browse files Browse the repository at this point in the history
…AM… (#8256)
  • Loading branch information
rafcio19 authored Oct 24, 2024
1 parent 6e705a8 commit fd4bd3b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion moto/awslambda/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,11 @@ def _invoke_lambda(self, event: Optional[str] = None) -> Tuple[str, bool, str]:
]
)
for image_repo in image_repos:
image_ref = f"{image_repo}:{self.run_time}"
image_ref = (
image_repo
if ":" in image_repo
else f"{image_repo}:{self.run_time}"
)
try:
self.ensure_image_exists(image_ref)
break
Expand Down

0 comments on commit fd4bd3b

Please sign in to comment.