zabbix_template: fails without template_groups, cryptic error #50834
Labels
affects_2.6
This issue/PR affects Ansible v2.6
bug
This issue/PR relates to a bug.
module
This issue/PR relates to a module.
support:community
This issue/PR relates to code supported by the Ansible community.
traceback
This issue/PR includes a traceback.
zabbix
Zabbix community
SUMMARY
The zabbix_template module lists
template_groups
as being optional, but when leaving them off import fails.Additionally, an invalid request is sent to the API, and the resulting error is very cryptic.
ISSUE TYPE
COMPONENT NAME
zabbix_template
ANSIBLE VERSION
Also tested with zabbix_template from devel.
CONFIGURATION
OS / ENVIRONMENT
Tested against Zabbix 4.0.3.
STEPS TO REPRODUCE
Attempt to import any template without specifying
template_groups
; the actual template contents do not matter.Actually the file contents do not mater at all - a garbage file would be simply ignored.
EXPECTED RESULTS
Template is imported.
ACTUAL RESULTS
Several problems:
The text was updated successfully, but these errors were encountered: