IcingaCommand: prefer to be rendered to global
This commit is contained in:
parent
7118545c98
commit
b6b15ce7e3
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
namespace Icinga\Module\Director\Objects;
|
namespace Icinga\Module\Director\Objects;
|
||||||
|
|
||||||
|
use Icinga\Module\Director\IcingaConfig\IcingaConfig;
|
||||||
use Icinga\Module\Director\IcingaConfig\IcingaConfigHelper as c;
|
use Icinga\Module\Director\IcingaConfig\IcingaConfigHelper as c;
|
||||||
|
|
||||||
class IcingaCommand extends IcingaObject
|
class IcingaCommand extends IcingaObject
|
||||||
|
@ -74,6 +75,11 @@ class IcingaCommand extends IcingaObject
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getRenderingZone(IcingaConfig $config = null)
|
||||||
|
{
|
||||||
|
return $this->connection->getDefaultGlobalZoneName();
|
||||||
|
}
|
||||||
|
|
||||||
protected function renderCommand()
|
protected function renderCommand()
|
||||||
{
|
{
|
||||||
$command = $this->command;
|
$command = $this->command;
|
||||||
|
|
Loading…
Reference in New Issue