mirror of
https://github.com/Icinga/icingaweb2-module-graphite.git
synced 2026-02-19 02:34:05 -05:00
Use ipl\Stdlib\Filter::like() for not null checks
This commit is contained in:
parent
c214ce8abb
commit
0d123dd8a2
2 changed files with 2 additions and 2 deletions
|
|
@ -39,7 +39,7 @@ class HostsController extends IcingadbGraphiteController
|
|||
$db = $this->getDb();
|
||||
|
||||
$hosts = Host::on($db)->with('state');
|
||||
$hosts->filter(Filter::equal('state.performance_data', '*'));
|
||||
$hosts->filter(Filter::like('state.performance_data', '*'));
|
||||
|
||||
$this->applyRestrictions($hosts);
|
||||
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ class ServicesController extends IcingadbGraphiteController
|
|||
$services = Service::on($db)
|
||||
->with('state')
|
||||
->with('host');
|
||||
$services->filter(Filter::equal('state.performance_data', '*'));
|
||||
$services->filter(Filter::like('state.performance_data', '*'));
|
||||
|
||||
$this->applyRestrictions($services);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue