Skip to content

Commit

Permalink
Merge pull request #3 from UKHomeOffice/correct-source-account-id
Browse files Browse the repository at this point in the history
Use the correct account id when notifying of alerts in another account
  • Loading branch information
asmith030 authored Jun 5, 2019
2 parents a89eda9 + a88d779 commit 461f359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/notify_slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def notify_slack(message):
"color": alert_severity_color(message['detail']['severity']),
"text": make_message_text(
region=message['region'],
account=message['account'],
account=message['detail']['accountId'],
severity=alert_severity_name(message["detail"]["severity"]),
),
}
Expand Down

0 comments on commit 461f359

Please sign in to comment.