{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/39295","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/39295/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/39295/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/39295/events","html_url":"https://github.com/ansible/ansible/issues/39295","id":317629789,"number":39295,"title":"Grafana_dashboard error when trying to import","user":{"login":"shanep2300","id":16820289,"avatar_url":"https://avatars3.githubusercontent.com/u/16820289?v=4","gravatar_id":"","url":"https://api.github.com/users/shanep2300","html_url":"https://github.com/shanep2300","followers_url":"https://api.github.com/users/shanep2300/followers","following_url":"https://api.github.com/users/shanep2300/following{/other_user}","gists_url":"https://api.github.com/users/shanep2300/gists{/gist_id}","starred_url":"https://api.github.com/users/shanep2300/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shanep2300/subscriptions","organizations_url":"https://api.github.com/users/shanep2300/orgs","repos_url":"https://api.github.com/users/shanep2300/repos","events_url":"https://api.github.com/users/shanep2300/events{/privacy}","received_events_url":"https://api.github.com/users/shanep2300/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-25T13:32:25Z","updated_at":"2018-04-25T13:44:53Z","closed_at":null,"author_association":"NONE","body":"<!---\r\nVerify first that your issue/request is not already reported on GitHub.\r\nTHIS FORM WILL BE READ BY A MACHINE, COMPLETE ALL SECTIONS AS DESCRIBED.\r\nAlso test if the latest release, and devel branch are affected too.\r\nALWAYS add information AFTER (OUTSIDE) these html comments.\r\nOtherwise it may end up being automatically closed by our bot. -->\r\n\r\n##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest -->\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\n<!--- Insert, BELOW THIS COMMENT, the name of the module, plugin, task or feature.\r\nDo not include extra details here, e.g. \"vyos_command\" not \"the network module vyos_command\" or the full path-->\r\ngrafana_dashboard\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste, BELOW THIS COMMENT, verbatim output from \"ansible --version\" between quotes below -->\r\n```\r\n2.5.1\r\n```\r\n\r\n##### CONFIGURATION\r\n<!--- If using Ansible 2.4 or above, paste, BELOW THIS COMMENT, the results of \"ansible-config dump --only-changed\"\r\nOtherwise, mention any settings you have changed/added/removed in ansible.cfg\r\n(or using the ANSIBLE_* environment variables).-->\r\n\r\n##### OS / ENVIRONMENT\r\n<!--- Mention, BELOW THIS COMMENT, the OS you are running Ansible from, and the OS you are\r\nmanaging, or say \"N/A\" for anything that is not platform-specific.\r\nAlso mention the specific version of what you are trying to control,\r\ne.g. if this is a network bug the version of firmware on the network device.-->\r\nCentOS\r\n\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\nModule error when trying to import dashboard into Grafana.\r\n\r\n##### STEPS TO REPRODUCE\r\n<!--- For bugs, show exactly how to reproduce the problem, using a minimal test-case.\r\nFor new features, show how the feature would be used. -->\r\n\r\n<!--- Paste example playbooks or commands between quotes below -->\r\n```yaml\r\n- name: Import dashboard into Grafana\r\n  grafana_dashboard:\r\n    grafana_url: http://localhost:8086\r\n    grafana_user: \"{{ grafana_admin_user|quote }}\"\r\n    grafana_password: \"{{ grafana_admin_password|quote }}\"\r\n    state: present\r\n    message: Updated by ansible\r\n    overwrite: yes\r\n    path: /home/centos/grafana-dashboards/JMeter_Results_by_Project.json\r\n```\r\n\r\n<!--- You can also paste gist.github.com links for larger files -->\r\n\r\n##### EXPECTED RESULTS\r\n<!--- What did you expect to happen when running the steps above? -->\r\nJson file gets imported into Grafana.\r\n\r\n##### ACTUAL RESULTS\r\n<!--- What actually happened? If possible run with extra verbosity (-vvvv) -->\r\nSee error below.\r\n\r\n<!--- Paste verbatim command output between quotes below -->\r\n```\r\namazon-ebs: An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TypeError: send() got multiple values for keyword argument 'MESSAGE'\r\n\r\n    amazon-ebs: fatal: [127.0.0.1]: FAILED! => {\"changed\": false, \"module_stderr\": \"Traceback (most recent call last):\\n  File \\\"/tmp/ansible_e_tueC/ansible_module_grafana_dashboard.py\\\", line 335, in <module>\\n    main()\\n  File \\\"/tmp/ansible_e_tueC/ansible_module_grafana_dashboard.py\\\", line 299, in main\\n    mutually_exclusive=[['grafana_user', 'grafana_api_key']],\\n  File \\\"/tmp/ansible_e_tueC/ansible_modlib.zip/ansible/module_utils/basic.py\\\", line 909, in __init__\\n  File \\\"/tmp/ansible_e_tueC/ansible_modlib.zip/ansible/module_utils/basic.py\\\", line 2191, in _log_invocation\\n  File \\\"/tmp/ansible_e_tueC/ansible_modlib.zip/ansible/module_utils/basic.py\\\", line 2152, in log\\nTypeError: send() got multiple values for keyword argument 'MESSAGE'\\n\", \"module_stdout\": \"\", \"msg\": \"MODULE FAILURE\", \"rc\": 1}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/384291740","html_url":"https://github.com/ansible/ansible/issues/39295#issuecomment-384291740","issue_url":"https://api.github.com/repos/ansible/ansible/issues/39295","id":384291740,"user":{"login":"ansibot","id":6585283,"avatar_url":"https://avatars0.githubusercontent.com/u/6585283?v=4","gravatar_id":"","url":"https://api.github.com/users/ansibot","html_url":"https://github.com/ansibot","followers_url":"https://api.github.com/users/ansibot/followers","following_url":"https://api.github.com/users/ansibot/following{/other_user}","gists_url":"https://api.github.com/users/ansibot/gists{/gist_id}","starred_url":"https://api.github.com/users/ansibot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansibot/subscriptions","organizations_url":"https://api.github.com/users/ansibot/orgs","repos_url":"https://api.github.com/users/ansibot/repos","events_url":"https://api.github.com/users/ansibot/events{/privacy}","received_events_url":"https://api.github.com/users/ansibot/received_events","type":"User","site_admin":false},"created_at":"2018-04-25T13:44:52Z","updated_at":"2018-04-25T13:44:52Z","author_association":"CONTRIBUTOR","body":"cc @tsalle\n[click here for bot help](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md)\n<!--- boilerplate: notify --->"}}
{"actor":{"display_login":"ansibot"}}