Fix tests in response to breakage in #351
This commit is contained in:
parent
2fd1d5969e
commit
4625ecf273
4 changed files with 14 additions and 7 deletions
|
@ -18,11 +18,11 @@ def start_cloudwatch_sender(metrics, app):
|
|||
"""
|
||||
Starts sending from metrics to a new CloudWatchSender.
|
||||
"""
|
||||
try:
|
||||
access_key = app.config['CLOUDWATCH_AWS_ACCESS_KEY']
|
||||
secret_key = app.config['CLOUDWATCH_AWS_SECRET_KEY']
|
||||
namespace = app.config['CLOUDWATCH_NAMESPACE']
|
||||
except KeyError:
|
||||
access_key = app.config.get('CLOUDWATCH_AWS_ACCESS_KEY')
|
||||
secret_key = app.config.get('CLOUDWATCH_AWS_SECRET_KEY')
|
||||
namespace = app.config.get('CLOUDWATCH_NAMESPACE')
|
||||
|
||||
if not namespace:
|
||||
logger.debug('CloudWatch not configured')
|
||||
return
|
||||
|
||||
|
|
Reference in a new issue