mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 07:17:40 -02:30
Changing the color option for hipchat to always be lowercase (expected by the API)
Signed-off-by: Romain Brucker <romain.brucker@amalto.com>
This commit is contained in:
@@ -38,7 +38,7 @@ class HipChatBackend(AWXBaseEmailBackend):
|
|||||||
r = requests.post("{}/v2/room/{}/notification".format(self.api_url, rcp),
|
r = requests.post("{}/v2/room/{}/notification".format(self.api_url, rcp),
|
||||||
params={"auth_token": self.token},
|
params={"auth_token": self.token},
|
||||||
verify=False,
|
verify=False,
|
||||||
json={"color": self.color,
|
json={"color": self.color.lower(),
|
||||||
"message": m.subject,
|
"message": m.subject,
|
||||||
"notify": self.notify,
|
"notify": self.notify,
|
||||||
"from": m.from_email,
|
"from": m.from_email,
|
||||||
|
|||||||
Reference in New Issue
Block a user