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 })