HostController: one more fix for JSON
This commit is contained in:
parent
ca1371d8b3
commit
e566d32ccf
|
@ -479,12 +479,14 @@ class HostController extends ObjectController
|
||||||
throw new NotFoundError('The host "%s" is not an agent', $host->object_name);
|
throw new NotFoundError('The host "%s" is not an agent', $host->object_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->sendJson(
|
$this->sendJson(
|
||||||
|
$this->getResponse(),
|
||||||
Util::getIcingaTicket(
|
Util::getIcingaTicket(
|
||||||
$host->object_name,
|
$host->object_name,
|
||||||
$this->api()->getTicketSalt()
|
$this->api()->getTicketSalt()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
return parent::handleApiRequest();
|
return parent::handleApiRequest();
|
||||||
|
|
Loading…
Reference in New Issue