mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
X509\Sni: Cleanup some codes
This commit is contained in:
parent
9be9d072f1
commit
0a31addffe
1 changed files with 6 additions and 11 deletions
|
|
@ -24,17 +24,12 @@ class Sni extends SniHook
|
|||
{
|
||||
$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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue