Skip to content

Commit

Permalink
X509\Sni: Cleanup some codes
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabteab committed Sep 12, 2023
1 parent 8070d74 commit fe92484
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions library/Icingadb/ProvidedHook/X509/Sni.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,12 @@ public function getHosts(Filter $filter = null): Generator
{
$this->getDb()->ping();

$queryHost = Host::on($this->getDb());

$queryHost->getSelectBase();

$hostStatusCols = [
'host_name' => 'name',
'host_address' => 'address',
'host_address6' => 'address6'
];

$queryHost = $queryHost->columns($hostStatusCols);
$queryHost = Host::on($this->getDb())
->columns([
'host_name' => 'name',
'host_address' => 'address',
'host_address6' => 'address6'
]);

$this->applyRestrictions($queryHost);

Expand Down

0 comments on commit fe92484

Please sign in to comment.