mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 16:24:05 +02:00
Merge branch 'feature/import-templates-11778'
This commit is contained in:
commit
15f08170ec
@ -565,17 +565,6 @@ class Sync
|
|||||||
$modified = 0;
|
$modified = 0;
|
||||||
$deleted = 0;
|
$deleted = 0;
|
||||||
foreach ($objects as $object) {
|
foreach ($objects as $object) {
|
||||||
if ($object instanceof IcingaObject && $object->isTemplate()) {
|
|
||||||
// TODO: allow to sync templates
|
|
||||||
if ($object->hasBeenModified()) {
|
|
||||||
throw new IcingaException(
|
|
||||||
'Sync is not allowed to modify template "%s"',
|
|
||||||
$object->object_name
|
|
||||||
);
|
|
||||||
}
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($object->shouldBeRemoved()) {
|
if ($object->shouldBeRemoved()) {
|
||||||
$object->delete($db);
|
$object->delete($db);
|
||||||
$deleted++;
|
$deleted++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user