diff --git a/library/Director/Objects/IcingaCommand.php b/library/Director/Objects/IcingaCommand.php index 6020205d..1e48a3ab 100644 --- a/library/Director/Objects/IcingaCommand.php +++ b/library/Director/Objects/IcingaCommand.php @@ -2,6 +2,7 @@ namespace Icinga\Module\Director\Objects; +use Icinga\Module\Director\IcingaConfig\IcingaConfig; use Icinga\Module\Director\IcingaConfig\IcingaConfigHelper as c; class IcingaCommand extends IcingaObject @@ -74,6 +75,11 @@ class IcingaCommand extends IcingaObject return $value; } + public function getRenderingZone(IcingaConfig $config = null) + { + return $this->connection->getDefaultGlobalZoneName(); + } + protected function renderCommand() { $command = $this->command;