[icinga-checkins] icinga.org: icingaweb2-module-director/feature/assign-for-11976: IcingaObjectImports: fix compatibility issue

git at icinga.org git at icinga.org
Fri Oct 21 23:17:19 CEST 2016


Module: icingaweb2-module-director
Branch: feature/assign-for-11976
Commit: a9b3b2f47a5f4901ff7f7f026e5068ae80a557b9
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=a9b3b2f47a5f4901ff7f7f026e5068ae80a557b9

Author: Thomas Gelf <thomas at gelf.net>
Date:   Thu Oct 20 19:17:52 2016 +0000

IcingaObjectImports: fix compatibility issue

fixes #12951

---

 library/Director/Objects/IcingaObjectImports.php |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/library/Director/Objects/IcingaObjectImports.php b/library/Director/Objects/IcingaObjectImports.php
index 2f68644..d351c86 100644
--- a/library/Director/Objects/IcingaObjectImports.php
+++ b/library/Director/Objects/IcingaObjectImports.php
@@ -327,7 +327,8 @@ class IcingaObjectImports implements Iterator, Countable, IcingaConfigRenderer
 
     public static function loadForStoredObject(IcingaObject $object)
     {
-        return (new static($object))->loadFromDb();
+        $obj = new static($object);
+        return $obj->loadFromDb();
     }
 
     public function toConfigString()



More information about the icinga-checkins mailing list