code review feedback

This commit is contained in:
Kenneth Kehl
2023-05-05 08:09:15 -07:00
parent 70b58f50ac
commit b59e4df06d
5 changed files with 27 additions and 43 deletions

View File

@@ -98,6 +98,7 @@ def create_app(application):
aws_ses_stub_client.init_app(
stub_url=application.config['SES_STUB_URL']
)
aws_cloudwatch_client.init_app(application)
# If a stub url is provided for SES, then use the stub client rather than the real SES boto client
email_clients = [aws_ses_stub_client] if application.config['SES_STUB_URL'] else [aws_ses_client]
notification_provider_clients.init_app(