mirror of https://github.com/ansible/ansible.git
zabbix_template - fixing errors linked templates and dump/imports (#66463)
* Fixing errors on empty linked templates fixes #66417 Line 409 fixes KeyError if existing template has no linked templates - as Zabbix API isn't returning an empty array either. Line 417 is needed to mark as changed if new/modified template has no linked but existing one has. Line 442 is needed to actually update even if link_templates was None. * decode parsed xml root fixes #66466 Line 533: without .decode() the ET.tostring on python3 returns byte-like object * Create 66463-zabbix_template-fix-error-linktemplate-and-importdump.yml * Update changelogs/fragments/66463-zabbix_template-fix-error-linktemplate-and-importdump.yml Co-Authored-By: Dusan Matejka <D3DeFi@users.noreply.github.com> * Update changelogs/fragments/66463-zabbix_template-fix-error-linktemplate-and-importdump.yml Co-Authored-By: Dusan Matejka <D3DeFi@users.noreply.github.com> Co-authored-by: Dusan Matejka <D3DeFi@users.noreply.github.com>pull/66463/merge
parent
eb3d081c11
commit
e646bd08e1
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
bugfixes:
|
||||||
|
- zabbix_template - fixed error when providing empty ``link_templates`` to the module (see https://github.com/ansible/ansible/issues/66417)
|
||||||
|
- zabbix_template - fixed invalid (non-importable) output provided by exporting XML (see https://github.com/ansible/ansible/issues/66466)
|
||||||
|
|
Loading…
Reference in New Issue