[icinga-checkins] icinga.org: icingaweb2-module-director/master: Cli\ObjectCommand: fix type lookup for groups

git at icinga.org git at icinga.org
Fri Aug 5 16:46:50 CEST 2016


Module: icingaweb2-module-director
Branch: master
Commit: 50c67ceda252942a21640ed0bdf0401d8d0d7f56
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=50c67ceda252942a21640ed0bdf0401d8d0d7f56

Author: Thomas Gelf <thomas at gelf.net>
Date:   Fri Aug  5 14:44:57 2016 +0000

Cli\ObjectCommand: fix type lookup for groups

fixes #12319

---

 library/Director/Cli/ObjectCommand.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/Director/Cli/ObjectCommand.php b/library/Director/Cli/ObjectCommand.php
index 1011d9e..c8c1ed9 100644
--- a/library/Director/Cli/ObjectCommand.php
+++ b/library/Director/Cli/ObjectCommand.php
@@ -322,7 +322,7 @@ class ObjectCommand extends Command
     protected function load($name)
     {
         return IcingaObject::loadByType(
-            $this->getType(),
+            lcfirst($this->getType()),
             $name,
             $this->db()
         );



More information about the icinga-checkins mailing list