Inspect: we expect an object, not a name

This commit is contained in:
Thomas Gelf 2017-07-14 14:57:01 +02:00
parent ea02d0b23c
commit d61b93d63d

View File

@ -111,7 +111,7 @@ class InspectController extends ActionController
if ($name = $this->params->get('endpoint')) {
$this->endpoint = IcingaEndpoint::load($name, $this->db());
} else {
$this->endpoint = $this->db()->getDeploymentEndpointName();
$this->endpoint = $this->db()->getDeploymentEndpoint();
}
}