Fix typo in moto/events/notifications.py (#7229)

This commit is contained in:
Akira Noda 2024-01-20 04:58:44 +09:00 committed by GitHub
parent 35eb00914c
commit e379afe04e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -59,10 +59,10 @@ def _send_safe_notification(
def _invoke_lambda(account_id: str, fn_arn: str, event: Any) -> None: def _invoke_lambda(account_id: str, fn_arn: str, event: Any) -> None:
from moto.awslambda import lambda_backends from moto.awslambda import lambda_backends
lmbda_region = fn_arn.split(":")[3] lambda_region = fn_arn.split(":")[3]
body = json.dumps(event) body = json.dumps(event)
lambda_backends[account_id][lmbda_region].invoke( lambda_backends[account_id][lambda_region].invoke(
function_name=fn_arn, function_name=fn_arn,
qualifier=None, # type: ignore[arg-type] qualifier=None, # type: ignore[arg-type]
body=body, body=body,