HostController: fetch settings via helper methods

This commit is contained in:
Thomas Gelf 2016-02-10 17:38:39 +01:00
parent 446f378b10
commit 4c8bc7f3b4
1 changed files with 3 additions and 3 deletions

View File

@ -44,8 +44,8 @@ class HostController extends ObjectController
// TODO: Fail when no ticket
$this->view->certname = $this->object->object_name;
$this->view->ticket = Util::getIcingaTicket($this->view->certname, $this->api()->getTicketSalt());
$this->view->master = 'master'; // TODO: Change this!!
$this->view->masterzone = 'master';
$this->view->globalzone = 'director-global';
$this->view->master = $this->db()->getDeploymentEndpointName();
$this->view->masterzone = $this->db()->getMasterZoneName();
$this->view->globalzone = $this->db()->getDefaultGlobalZoneName();
}
}