Skip to content

Commit

Permalink
fix: Threema notification channel options
Browse files Browse the repository at this point in the history
  • Loading branch information
prndrbr authored and rrey committed Feb 20, 2022
1 parent 2ed03e0 commit 5f2f1ce
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions plugins/modules/grafana_notification_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@
type: str
description:
- 8 character Threema Gateway ID (starting with a *).
threema_recepient_id:
threema_recipient_id:
type: str
description:
- 8 character Threema ID that should receive the alerts.
Expand Down Expand Up @@ -574,10 +574,10 @@ def grafana_notification_channel_payload(data):
payload['settings']['bottoken'] = data['telegram_bot_token']
payload['settings']['chatid'] = data['telegram_chat_id']

elif data['type'] == 'treema':
payload['settings']['gateway_id'] = data['settings_gateway_id']
payload['settings']['recipient_id'] = data['settings_recipient_id']
payload['settings']['api_secret'] = data['settings_api_secret']
elif data['type'] == 'threema':
payload['settings']['gateway_id'] = data['threema_gateway_id']
payload['settings']['recipient_id'] = data['threema_recipient_id']
payload['settings']['api_secret'] = data['threema_api_secret']

elif data['type'] == 'victorops':
payload['settings']['url'] = data['victorops_url']
Expand Down Expand Up @@ -759,7 +759,7 @@ def main():
telegram_chat_id=dict(type='str'),

threema_gateway_id=dict(type='str'),
threema_recepient_id=dict(type='str'),
threema_recipient_id=dict(type='str'),
threema_api_secret=dict(type='str', no_log=True),

victorops_url=dict(type='str'),
Expand Down Expand Up @@ -795,7 +795,7 @@ def main():
['type', 'sensu', ['sensu_url']],
['type', 'slack', ['slack_url']],
['type', 'telegram', ['telegram_bot_token', 'telegram_chat_id']],
['type', 'threema', ['threema_gateway_id', 'threema_recepient_id',
['type', 'threema', ['threema_gateway_id', 'threema_recipient_id',
'threema_api_secret']],
['type', 'victorops', ['victorops_url']],
['type', 'webhook', ['webhook_url']]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
uid: threema
name: threema
type: threema
threema_gateway_id: xxx
threema_recepient_id: yyy
threema_gateway_id: "*xxxxxxx"
threema_recipient_id: yyyyyyyy
threema_api_secret: zzz
grafana_url: "{{ grafana_url }}"
grafana_user: "{{ grafana_username }}"
Expand Down

0 comments on commit 5f2f1ce

Please sign in to comment.