mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Enable auth header to send with just username field filled in
This commit is contained in:
parent
d66106d380
commit
6ef235dcd5
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user