mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
parent
3c2815d2e9
commit
f447457c40
@ -13,6 +13,7 @@ v1.10.1 (unreleased)
|
||||
|
||||
### Import and Sync
|
||||
* FIX: sync lower-cased all object names since v1.10 (#2608)
|
||||
* FIX: sync for Datalist entries has been fixed (#2618)
|
||||
|
||||
### UI
|
||||
* FIX: "Modify" Services via the monitoring module (#2615, #2619)
|
||||
|
@ -10,6 +10,7 @@ use Icinga\Module\Director\Data\Db\DbObject;
|
||||
use Icinga\Module\Director\Data\Db\DbObjectStore;
|
||||
use Icinga\Module\Director\Data\Db\DbObjectTypeRegistry;
|
||||
use Icinga\Module\Director\Db;
|
||||
use Icinga\Module\Director\Db\Branch\BranchSupport;
|
||||
use Icinga\Module\Director\Db\Cache\PrefetchCache;
|
||||
use Icinga\Module\Director\Objects\HostGroupMembershipResolver;
|
||||
use Icinga\Module\Director\Objects\IcingaHost;
|
||||
@ -406,8 +407,9 @@ class Sync
|
||||
if ($this->rule->hasCombinedKey()) {
|
||||
$this->objects = [];
|
||||
$destinationKeyPattern = $this->rule->getDestinationKeyPattern();
|
||||
if ($this->store) {
|
||||
$objects = $this->store->loadAll(DbObjectTypeRegistry::tableNameByType($ruleObjectType));
|
||||
$table = DbObjectTypeRegistry::tableNameByType($ruleObjectType);
|
||||
if ($this->store && BranchSupport::existsForTableName($table)) {
|
||||
$objects = $this->store->loadAll($table);
|
||||
} else {
|
||||
$objects = IcingaObject::loadAllByType($ruleObjectType, $this->db);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user