mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 08:48:46 -03:30
Checking if color is not None before setting it to lowercase
This commit is contained in:
@@ -26,9 +26,7 @@ class HipChatBackend(AWXBaseEmailBackend):
|
|||||||
def __init__(self, token, color, api_url, notify, fail_silently=False, **kwargs):
|
def __init__(self, token, color, api_url, notify, fail_silently=False, **kwargs):
|
||||||
super(HipChatBackend, self).__init__(fail_silently=fail_silently)
|
super(HipChatBackend, self).__init__(fail_silently=fail_silently)
|
||||||
self.token = token
|
self.token = token
|
||||||
if color == 'None':
|
if color is not None:
|
||||||
self.color = color
|
|
||||||
else:
|
|
||||||
self.color = color.lower()
|
self.color = color.lower()
|
||||||
self.api_url = api_url
|
self.api_url = api_url
|
||||||
self.notify = notify
|
self.notify = notify
|
||||||
|
|||||||
Reference in New Issue
Block a user