Description
SUMMARY
zabbix_mediatype is broken with Zabbix 7.0.9
ISSUE TYPE
- Bug Report
COMPONENT NAME
zabbix_mediatype module
ANSIBLE VERSION
Any version, e.g.
$ ansible --version
ansible [core 2.16.0]
config file = None
configured module search path = ['/home/ey/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/ey/env_py312_ans216/lib/python3.12/site-packages/ansible
ansible collection location = /home/ey/.ansible/collections:/usr/share/ansible/collections
executable location = /home/ey/env_py312_ans216/bin/ansible
python version = 3.12.2 (main, Feb 25 2024, 16:36:57) [GCC 9.4.0] (/home/ey/env_py312_ans216/bin/python)
jinja version = 3.1.3
libyaml = True
OS / ENVIRONMENT / Zabbix Version
Zabbix 7.0.9
STEPS TO REPRODUCE
$ ansible-test integration -v --color --diff --python 3.12 --requirements --coverage test_zabbix_mediatype
<snip>
TASK [test_zabbix_mediatype : test - create new email mediatype without authentication (again)] ***
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: KeyError: 'message_format'
fatal: [testhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"<stdin>\", line 141, in <module>\n File \"<stdin>\", line 133, in _ansiballz_main\n File \"<stdin>\", line 81, in invoke_module\n File \"/opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/runpy.py\", line 225, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File \"/opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/runpy.py\", line 97, in _run_module_code\n _run_code(code, mod_globals, init_globals,\n File \"/opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/runpy.py\", line 87, in _run_code\n exec(code, run_globals)\n File \"/tmp/ansible_community.zabbix.zabbix_mediatype_payload_w_wsopt3/ansible_community.zabbix.zabbix_mediatype_payload.zip/ansible_collections/community/zabbix/plugins/modules/zabbix_mediatype.py\", line 840, in <module>\n File \"/tmp/ansible_community.zabbix.zabbix_mediatype_payload_w_wsopt3/ansible_community.zabbix.zabbix_mediatype_payload.zip/ansible_collections/community/zabbix/plugins/modules/zabbix_mediatype.py\", line 792, in main\n File \"/tmp/ansible_community.zabbix.zabbix_mediatype_payload_w_wsopt3/ansible_community.zabbix.zabbix_mediatype_payload.zip/ansible_collections/community/zabbix/plugins/modules/zabbix_mediatype.py\", line 658, in get_update_params\nKeyError: 'message_format'\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}