mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
Sync: deletions are also modifications
This commit is contained in:
parent
c1ba91ece9
commit
d0e1ecb8d7
@ -105,6 +105,8 @@ class Sync
|
|||||||
foreach ($objects as $object) {
|
foreach ($objects as $object) {
|
||||||
if ($object->hasBeenModified()) {
|
if ($object->hasBeenModified()) {
|
||||||
$modified[] = $object;
|
$modified[] = $object;
|
||||||
|
} elseif ($object instanceof IcingaObject && $object->shouldBeRemoved()) {
|
||||||
|
$modified[] = $object;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user