mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
IcingaObject: allow to directly set dict var key
This commit is contained in:
parent
f2f748738e
commit
72ffe336be
@ -185,6 +185,10 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
|||||||
$this->vars()->set($k, $v);
|
$this->vars()->set($k, $v);
|
||||||
}
|
}
|
||||||
return $this;
|
return $this;
|
||||||
|
} elseif (substr($key, 0, 5) === 'vars.') {
|
||||||
|
//TODO: allow for deep keys
|
||||||
|
$this->vars()->set(substr($k, 5), $v);
|
||||||
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->propertyIsBoolean($key) && $value !== null) {
|
if ($this->propertyIsBoolean($key) && $value !== null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user