mirror of
https://github.com/ansible/awx.git
synced 2026-03-02 01:08:48 -03:30
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:
@@ -16,12 +16,11 @@ WEBSOCKET_TIMEOUT = 30
|
|||||||
class SlackBackend(AWXBaseEmailBackend):
|
class SlackBackend(AWXBaseEmailBackend):
|
||||||
|
|
||||||
init_parameters = {"token": {"label": "Token", "type": "password"},
|
init_parameters = {"token": {"label": "Token", "type": "password"},
|
||||||
"hex_color": {"label": "Notification Color", "type": "string"},
|
|
||||||
"channels": {"label": "Destination Channels", "type": "list"}}
|
"channels": {"label": "Destination Channels", "type": "list"}}
|
||||||
recipient_parameter = "channels"
|
recipient_parameter = "channels"
|
||||||
sender_parameter = None
|
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)
|
super(SlackBackend, self).__init__(fail_silently=fail_silently)
|
||||||
self.token = token
|
self.token = token
|
||||||
self.color = None
|
self.color = None
|
||||||
|
|||||||
Reference in New Issue
Block a user