mirror of
https://github.com/ansible/awx.git
synced 2026-02-27 07:56:06 -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):
|
||||
super(HipChatBackend, self).__init__(fail_silently=fail_silently)
|
||||
self.token = token
|
||||
if color == 'None':
|
||||
self.color = color
|
||||
else:
|
||||
if color is not None:
|
||||
self.color = color.lower()
|
||||
self.api_url = api_url
|
||||
self.notify = notify
|
||||
|
||||
Reference in New Issue
Block a user