mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
Sync: do not deal with 'disabled' for objects...
...without such properties (e.g. Sets)
This commit is contained in:
parent
8ec0fad185
commit
9e193dbc6b
@ -594,6 +594,7 @@ class Sync
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @var DbObject|IcingaObject $object */
|
||||||
foreach ($newObjects as $key => $object) {
|
foreach ($newObjects as $key => $object) {
|
||||||
if (array_key_exists($key, $this->objects)) {
|
if (array_key_exists($key, $this->objects)) {
|
||||||
switch ($this->rule->get('update_policy')) {
|
switch ($this->rule->get('update_policy')) {
|
||||||
@ -605,7 +606,7 @@ class Sync
|
|||||||
// TODO: re-evaluate merge settings. vars.x instead of
|
// TODO: re-evaluate merge settings. vars.x instead of
|
||||||
// just "vars" might suffice.
|
// just "vars" might suffice.
|
||||||
$this->objects[$key]->merge($object, $this->replaceVars);
|
$this->objects[$key]->merge($object, $this->replaceVars);
|
||||||
if (! $hasDisabled) {
|
if (! $hasDisabled && $object->hasProperty('disabled')) {
|
||||||
$this->objects[$key]->resetProperty('disabled');
|
$this->objects[$key]->resetProperty('disabled');
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user