Skip to content

Commit

Permalink
Fix typo in moto/events/notifications.py (#7229)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsugumi-sys authored Jan 19, 2024
1 parent 35eb009 commit e379afe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moto/events/notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ def _send_safe_notification(
def _invoke_lambda(account_id: str, fn_arn: str, event: Any) -> None:
from moto.awslambda import lambda_backends

lmbda_region = fn_arn.split(":")[3]
lambda_region = fn_arn.split(":")[3]

body = json.dumps(event)
lambda_backends[account_id][lmbda_region].invoke(
lambda_backends[account_id][lambda_region].invoke(
function_name=fn_arn,
qualifier=None, # type: ignore[arg-type]
body=body,
Expand Down

0 comments on commit e379afe

Please sign in to comment.