Open
Description
SUMMARY
Use dingding_message_type
of grafana_notification_channel
in storybook will cause error: The error was: TypeError: unhashable type: 'list'.
After reading the code I found that might because of this code line. (PS: I'm not familiar with Python though)
Since dingding_message_type
should be string only so I think it is OK to change dingding_message_type
type to string.
ISSUE TYPE
- Bug Report
COMPONENT NAME
grafana_notification_channel
ANSIBLE VERSION
ansible [core 2.13.4]
config file = /home/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /opt/rh/rh-python38/root/usr/local/lib/python3.8/site-packages/ansible
ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
executable location = /opt/rh/rh-python38/root/usr/local/bin/ansible
python version = 3.8.13 (default, Aug 16 2022, 12:16:29) [GCC 9.3.1 20200408 (Red Hat 9.3.1-2)]
jinja version = 3.1.2
libyaml = True
COLLECTION VERSION
Collection Version
----------------- -------
community.grafana 1.5.2
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
- name: Create dingding notification channel
community.grafana.grafana_notification_channel:
uid: dingding
name: dingding
type: dingding
grafana_url: http://localhost:3000
grafana_user: admin
grafana_password: admin
reminder_frequency: 15m
is_default: true
dingding_message_type:
- action_card
dingding_url: '{{ user.grafana.dingding_send_url }}'
include_image: false
pagerduty_severity:
- critical
webhook_http_method:
- POST
pagerduty_auto_resolve: true
EXPECTED RESULTS
ACTUAL RESULTS
Metadata
Metadata
Assignees
Labels
No labels