Skip to content

Commit

Permalink
Use the correct account id when notifying of alerts in another account
Browse files Browse the repository at this point in the history
  • Loading branch information
asmith030 committed Jun 3, 2019
1 parent a89eda9 commit a88d779
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 a88d779

Please sign in to comment.