From e648a00312407a46804dbbf2371be16d50dd110c Mon Sep 17 00:00:00 2001 From: Eike Frost Date: Mon, 16 Oct 2017 10:44:12 +0200 Subject: [PATCH] Fix #24964 comparaison string vs integer (#31701) --- lib/ansible/modules/monitoring/zabbix_host.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/monitoring/zabbix_host.py b/lib/ansible/modules/monitoring/zabbix_host.py index 49960542862..f2af4cdec78 100644 --- a/lib/ansible/modules/monitoring/zabbix_host.py +++ b/lib/ansible/modules/monitoring/zabbix_host.py @@ -331,7 +331,7 @@ class Host(object): flag = False interface_str = interface for exist_interface in exist_interface_list: - interface_type = interface['type'] + interface_type = int(interface['type']) exist_interface_type = int(exist_interface['type']) if interface_type == exist_interface_type: # update