mirror of
https://github.com/ansible/awx.git
synced 2026-02-25 23:16:01 -03:30
Enable auth header to send with just username field filled in
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user