From c4d816a120aa764b6e32e956c779a099b190204b Mon Sep 17 00:00:00 2001 From: Marin Atanasov Nikolov Date: Thu, 21 Aug 2014 10:40:38 +0300 Subject: [PATCH] zabbix-vsphere-import: Fix host group creation --- src/zabbix/zabbix-vsphere-import | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zabbix/zabbix-vsphere-import b/src/zabbix/zabbix-vsphere-import index 5e7a9a7..9fc9094 100755 --- a/src/zabbix/zabbix-vsphere-import +++ b/src/zabbix/zabbix-vsphere-import @@ -456,7 +456,7 @@ class ZabbixConnector(object): # Create the group if missing print ' + Creating Zabbix host group %s' % group result = self.create_host_group(name=group) - group_id = result['result']['groupids'][0] + group_id = result[0] print ' + Host group created with group id %s' % group_id groups.append({ 'groupid': group_id })