From 00efa26cdb7a15bdb049104b3f6330975b17564c Mon Sep 17 00:00:00 2001 From: Michael Miko Date: Fri, 1 Mar 2019 18:51:39 +0900 Subject: [PATCH] Do not delete duplicate host when fetching Zabbix Hosts (#53160) --- lib/ansible/modules/monitoring/zabbix/zabbix_host_facts.py | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/ansible/modules/monitoring/zabbix/zabbix_host_facts.py b/lib/ansible/modules/monitoring/zabbix/zabbix_host_facts.py index a8b0184a46..f9e771e71a 100644 --- a/lib/ansible/modules/monitoring/zabbix/zabbix_host_facts.py +++ b/lib/ansible/modules/monitoring/zabbix/zabbix_host_facts.py @@ -137,7 +137,6 @@ class Host(object): listed_hostnames = [] for zabbix_host in hosts: if zabbix_host['name'] in listed_hostnames: - self._zapi.host.delete([zabbix_host['hostid']]) continue unique_hosts.append(zabbix_host) listed_hostnames.append(zabbix_host['name'])