mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Do not delete duplicate host when fetching Zabbix Hosts (#53160)
This commit is contained in:
parent
75abb27677
commit
00efa26cdb
1 changed files with 0 additions and 1 deletions
|
@ -137,7 +137,6 @@ class Host(object):
|
||||||
listed_hostnames = []
|
listed_hostnames = []
|
||||||
for zabbix_host in hosts:
|
for zabbix_host in hosts:
|
||||||
if zabbix_host['name'] in listed_hostnames:
|
if zabbix_host['name'] in listed_hostnames:
|
||||||
self._zapi.host.delete([zabbix_host['hostid']])
|
|
||||||
continue
|
continue
|
||||||
unique_hosts.append(zabbix_host)
|
unique_hosts.append(zabbix_host)
|
||||||
listed_hostnames.append(zabbix_host['name'])
|
listed_hostnames.append(zabbix_host['name'])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue