Merge pull request #2908 from ryanpetrello/fix-2187

fix a bug that broke bot avatars for Slack notifications
This commit is contained in:
Ryan Petrello 2018-08-22 11:35:02 -04:00 committed by GitHub
commit 5abe045e6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,6 +69,7 @@ class SlackBackend(AWXBaseEmailBackend):
r = r[1:]
ret = connection.api_call("chat.postMessage",
channel=r,
as_user=True,
attachments=[{
"color": self.color,
"text": m.subject