[icinga-checkins] icinga.org: icingaweb2-module-director/master: IcingaObject: fix variable names on setting vars.x

git at icinga.org git at icinga.org
Tue Feb 23 03:15:20 CET 2016


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

Author: Thomas Gelf <thomas at gelf.net>
Date:   Mon Feb 22 15:19:26 2016 +0100

IcingaObject: fix variable names on setting vars.x

---

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

diff --git a/library/Director/Objects/IcingaObject.php b/library/Director/Objects/IcingaObject.php
index b127130..d201dc8 100644
--- a/library/Director/Objects/IcingaObject.php
+++ b/library/Director/Objects/IcingaObject.php
@@ -187,7 +187,7 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
             return $this;
         } elseif (substr($key, 0, 5) === 'vars.') {
             //TODO: allow for deep keys
-            $this->vars()->set(substr($k, 5), $v);
+            $this->vars()->set(substr($key, 5), $value);
             return $this;
         }
 



More information about the icinga-checkins mailing list