From dfea3a4b954a801870421f1d2cd90759bf489cc6 Mon Sep 17 00:00:00 2001 From: paihu Date: Tue, 13 Mar 2018 17:40:44 +0900 Subject: [PATCH] fix: broken backward compatibility fix: param hex_color isn't optional Signed-off-by: paihu --- awx/main/notifications/slack_backend.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/awx/main/notifications/slack_backend.py b/awx/main/notifications/slack_backend.py index 3f795778f0..b68f91ef7c 100644 --- a/awx/main/notifications/slack_backend.py +++ b/awx/main/notifications/slack_backend.py @@ -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