From 6ef235dcd502a4f67ea5da59dfd525ad0cdfb4c9 Mon Sep 17 00:00:00 2001 From: beeankha Date: Mon, 22 Jul 2019 11:03:05 -0400 Subject: [PATCH] Enable auth header to send with just username field filled in --- awx/main/notifications/webhook_backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/notifications/webhook_backend.py b/awx/main/notifications/webhook_backend.py index a6449bcab9..9ee73e92f0 100644 --- a/awx/main/notifications/webhook_backend.py +++ b/awx/main/notifications/webhook_backend.py @@ -43,7 +43,7 @@ class WebhookBackend(AWXBaseEmailBackend): chosen_method = getattr(requests, self.http_method.lower(), None) for m in messages: auth = None - if self.username and self.password: + if self.username: auth = (self.username, self.password) r = chosen_method("{}".format(m.recipients()[0]), auth=auth,