1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Do not delete duplicate host when fetching Zabbix Hosts (#53160)

This commit is contained in:
Michael Miko 2019-03-01 18:51:39 +09:00 committed by John R Barker
parent 75abb27677
commit 00efa26cdb

View file

@ -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'])