mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
HostController: did I ever mention...
...that I hate Squiz.WhiteSpace.ControlStructureSpacing.SpacingAfterOpen?
This commit is contained in:
parent
dc1d572229
commit
f4339e6b1a
@ -393,8 +393,8 @@ class HostController extends ObjectController
|
|||||||
{
|
{
|
||||||
// TODO: I hate doing this:
|
// TODO: I hate doing this:
|
||||||
if ($this->getRequest()->getActionName() === 'ticket') {
|
if ($this->getRequest()->getActionName() === 'ticket') {
|
||||||
|
|
||||||
$host = $this->object;
|
$host = $this->object;
|
||||||
|
|
||||||
if ($host->getResolvedProperty('has_agent') !== 'y') {
|
if ($host->getResolvedProperty('has_agent') !== 'y') {
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user