fix busted webhook notifications

whoops, I broke it
This commit is contained in:
Ryan Petrello 2020-10-30 13:05:37 -04:00
parent 31275122a1
commit 2f738415b8
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777

View File

@ -57,6 +57,7 @@ class WebhookBackend(AWXBaseEmailBackend, CustomNotificationBase):
def send_messages(self, messages):
sent_messages = 0
self.headers['Content-Type'] = 'application/json'
if 'User-Agent' not in self.headers:
self.headers['User-Agent'] = "Tower {}".format(get_awx_version())
if self.http_method.lower() not in ['put','post']: