Skip to content

Commit

Permalink
Formated code; no functional changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Bläul committed Apr 4, 2020
1 parent b414718 commit 75f81a1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/De/Uniwue/RZ/Api/Icinga2/Icinga2.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,21 +273,21 @@ public function getHostAcknowledgement($hostName = false, $withHttps = true)
{

$joins = [
"host.name",
"host.acknowledgement",
"host.name",
"host.acknowledgement",
"host.acknowledgement_expiry",
];

$filterString = 'comment.entry_type==4 && comment.service_name==""';
if($hostName !== false) {
$filterString .= ' && host.name=="'.$hostName.'"';

if ($hostName !== false) {
$filterString .= ' && host.name=="' . $hostName . '"';
}

$filter = [
$filterString
];

return $this->getComments($filter, [], $joins, $withHttps);
}

Expand Down

0 comments on commit 75f81a1

Please sign in to comment.