1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

fix: broken backward compatibility

fix: param hex_color isn't optional

Signed-off-by: paihu <paihu_j@yahoo.co.jp>
This commit is contained in:
paihu 2018-03-13 17:40:44 +09:00
parent 9b5e088d70
commit dfea3a4b95

View File

@ -16,12 +16,11 @@ WEBSOCKET_TIMEOUT = 30
class SlackBackend(AWXBaseEmailBackend):
init_parameters = {"token": {"label": "Token", "type": "password"},
"hex_color": {"label": "Notification Color", "type": "string"},
"channels": {"label": "Destination Channels", "type": "list"}}
recipient_parameter = "channels"
sender_parameter = None
def __init__(self, token, hex_color, fail_silently=False, **kwargs):
def __init__(self, token, hex_color="", fail_silently=False, **kwargs):
super(SlackBackend, self).__init__(fail_silently=fail_silently)
self.token = token
self.color = None