mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
monitoring/zabbix_host: Fix (no) proxy handling
When updating a host with no proxy explicitly set, the host was always reported as changed, because it was comparing `"0"` and `None`.
This commit is contained in:
parent
ff592dacc5
commit
3e81023a87
1 changed files with 3 additions and 2 deletions
|
@ -362,6 +362,7 @@ class Host(object):
|
||||||
if set(list(template_ids)) != set(exist_template_ids):
|
if set(list(template_ids)) != set(exist_template_ids):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
if proxy_id is not None:
|
||||||
if host['proxy_hostid'] != proxy_id:
|
if host['proxy_hostid'] != proxy_id:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue