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`.
reviewable/pr18780/r1
Lukáš Lalinský 9 years ago
parent 8c1b672929
commit 3a90f78cca

@ -362,6 +362,7 @@ class Host(object):
if set(list(template_ids)) != set(exist_template_ids):
return True
if proxy_id is not None:
if host['proxy_hostid'] != proxy_id:
return True

Loading…
Cancel
Save