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); 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();