mirror of
https://github.com/ansible/awx.git
synced 2026-02-17 19:20:05 -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)
|
chosen_method = getattr(requests, self.http_method.lower(), None)
|
||||||
for m in messages:
|
for m in messages:
|
||||||
auth = None
|
auth = None
|
||||||
if self.username and self.password:
|
if self.username:
|
||||||
auth = (self.username, self.password)
|
auth = (self.username, self.password)
|
||||||
r = chosen_method("{}".format(m.recipients()[0]),
|
r = chosen_method("{}".format(m.recipients()[0]),
|
||||||
auth=auth,
|
auth=auth,
|
||||||
|
|||||||
Reference in New Issue
Block a user