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

Rename channels to rooms for hipchat notifications

This commit is contained in:
Matthew Jones 2016-05-17 15:32:48 -04:00
parent 9d1a3e065a
commit 9ba98d9cac

View File

@ -14,12 +14,12 @@ logger = logging.getLogger('awx.main.notifications.hipchat_backend')
class HipChatBackend(TowerBaseEmailBackend): class HipChatBackend(TowerBaseEmailBackend):
init_parameters = {"token": {"label": "Token", "type": "password"}, init_parameters = {"token": {"label": "Token", "type": "password"},
"channels": {"label": "Destination Channels", "type": "list"}, "rooms": {"label": "Destination Rooms", "type": "list"},
"color": {"label": "Notification Color", "type": "string"}, "color": {"label": "Notification Color", "type": "string"},
"api_url": {"label": "API Url (e.g: https://mycompany.hipchat.com)", "type": "string"}, "api_url": {"label": "API Url (e.g: https://mycompany.hipchat.com)", "type": "string"},
"notify": {"label": "Notify channel", "type": "bool"}, "notify": {"label": "Notify room", "type": "bool"},
"message_from": {"label": "Label to be shown with notification", "type": "string"}} "message_from": {"label": "Label to be shown with notification", "type": "string"}}
recipient_parameter = "channels" recipient_parameter = "rooms"
sender_parameter = "message_from" sender_parameter = "message_from"
def __init__(self, token, color, api_url, notify, fail_silently=False, **kwargs): def __init__(self, token, color, api_url, notify, fail_silently=False, **kwargs):