[icinga-checkins] icinga.org: icingaweb2-module-director/feature/job-scheduling-11627: IcingaCommand: prefer to be rendered to global

git at icinga.org git at icinga.org
Mon May 2 10:43:11 CEST 2016


Module: icingaweb2-module-director
Branch: feature/job-scheduling-11627
Commit: b6b15ce7e3175a544f480711c274c4039ebc1551
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=b6b15ce7e3175a544f480711c274c4039ebc1551

Author: Thomas Gelf <thomas at gelf.net>
Date:   Sat Apr 23 14:08:25 2016 +0200

IcingaCommand: prefer to be rendered to global

---

 library/Director/Objects/IcingaCommand.php |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/library/Director/Objects/IcingaCommand.php b/library/Director/Objects/IcingaCommand.php
index 6020205..1e48a3a 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;



More information about the icinga-checkins mailing list