IcingaCommand: prefer to be rendered to global

This commit is contained in:
Thomas Gelf 2016-04-23 14:08:25 +02:00
parent 7118545c98
commit b6b15ce7e3
1 changed files with 6 additions and 0 deletions

View File

@ -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;