-
Incident report
-
Resolution: Fixed
-
Major
-
2.0.12
$filterOptions = array(
'maintenance_status' => HOST_MAINTENANCE_STATUS_ON,
'status' => HOST_STATUS_MONITORED
);
$hosts = API::Host()->get(array(
'output' => array('name', 'maintenanceid'),
'groupids' => $filter['groupids'],
'filter' => $filterOptions,
'sortfield' => 'name',
'limit' => isset($filter['limit']) ? $filter['limit'] : 10
));
Using a limit of 10 is getting me only 4 results, while I get 7 (the actual number!) when I remove the limit or raise it to say 100. I would expect 7 results with a limit of 10.