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:
Romain Brucker 2017-09-26 11:32:05 -05:00
parent 45c516bf02
commit e67549e4a1

View File

@ -38,7 +38,7 @@ class HipChatBackend(AWXBaseEmailBackend):
r = requests.post("{}/v2/room/{}/notification".format(self.api_url, rcp),
params={"auth_token": self.token},
verify=False,
json={"color": self.color,
json={"color": self.color.lower(),
"message": m.subject,
"notify": self.notify,
"from": m.from_email,