From 0c85d4e82f5d5f35b4a9d5102c78a825dd7aebdb Mon Sep 17 00:00:00 2001 From: Marin Atanasov Nikolov Date: Fri, 5 Dec 2014 09:27:02 +0200 Subject: [PATCH] Issue #109: Fix getting Zabbix Proxy host ID --- src/zabbix/vsphere-import/zabbix-vsphere-import | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zabbix/vsphere-import/zabbix-vsphere-import b/src/zabbix/vsphere-import/zabbix-vsphere-import index 0fe39a8..0b6af1d 100755 --- a/src/zabbix/vsphere-import/zabbix-vsphere-import +++ b/src/zabbix/vsphere-import/zabbix-vsphere-import @@ -103,7 +103,7 @@ class ZabbixVSphere(object): proxies = self.zapi.proxy.get(output='extend') for proxy in proxies: - if proxy['name'] == name: + if proxy['host'] == name: break else: return None