HostController: one more fix for JSON

This commit is contained in:
Thomas Gelf 2017-07-06 22:57:23 +02:00
parent ca1371d8b3
commit e566d32ccf
1 changed files with 3 additions and 1 deletions

View File

@ -479,12 +479,14 @@ class HostController extends ObjectController
throw new NotFoundError('The host "%s" is not an agent', $host->object_name);
}
return $this->sendJson(
$this->sendJson(
$this->getResponse(),
Util::getIcingaTicket(
$host->object_name,
$this->api()->getTicketSalt()
)
);
return;
}
return parent::handleApiRequest();