@_exception_decorator('Can not get Zabbix hosts for instances {1}')
    def get_host_ids(self, instances):
        """
        Return host IDs for instances by names
        """
        api = self.get_zabbix_api()
        names = [self.get_host_name(instance) for instance in instances]
        hosts = api.host.get(filter={'host': names})
        if not hosts:
            raise ZabbixError(instances % 'There are no hosts for instances %s')
        if len(hosts) != len(names):
            logger.warning('There are no hosts for some instances')
        return [host['hostid'] for host in hosts]
dataset/ETHPy150Open opennode/nodeconductor/nodeconductor/monitoring/zabbix/api_client.py/ZabbixApiClient.get_host_ids/swapped operands of `%`