Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dingding_message_type: The error was: TypeError: unhashable type: 'list' #284

Open
devbean opened this issue Oct 10, 2022 · 0 comments
Open

Comments

@devbean
Copy link

devbean commented Oct 10, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant