diff --git a/monitoring/zabbix_host.py b/monitoring/zabbix_host.py index 70d323138c4..e6fec0b0252 100644 --- a/monitoring/zabbix_host.py +++ b/monitoring/zabbix_host.py @@ -362,8 +362,9 @@ class Host(object): if set(list(template_ids)) != set(exist_template_ids): return True - if host['proxy_hostid'] != proxy_id: - return True + if proxy_id is not None: + if host['proxy_hostid'] != proxy_id: + return True return False