AppliedServiceInfo: fetch UUID object

fixes #2615
This commit is contained in:
Thomas Gelf 2022-09-30 12:15:33 +02:00
parent b6ed832a03
commit 867138abe3
2 changed files with 5 additions and 0 deletions

View File

@ -14,6 +14,9 @@ v1.10.1 (unreleased)
### Import and Sync
* FIX: sync lower-cased all object names since v1.10 (#2608)
### UI
* FIX: "Modify" Services via the monitoring module (#2615, #2619)
### Configuration Baskets
* FIX: restore Import/Sync/Job when exported with v1.10 (#2620)
* FIX: restoring Job with ImportSource or SyncRule (#2528)

View File

@ -7,6 +7,7 @@ use Icinga\Data\Filter\Filter;
use Icinga\Module\Director\Db;
use Icinga\Module\Director\Objects\HostApplyMatches;
use Icinga\Module\Director\Objects\IcingaHost;
use Ramsey\Uuid\Uuid;
use Ramsey\Uuid\UuidInterface;
/**
@ -99,6 +100,7 @@ class AppliedServiceInfo implements ServiceInfo
$allRules = $db->fetchAll($query);
foreach ($allRules as $rule) {
$rule->uuid = Uuid::fromBytes(Db\DbUtil::binaryResult($rule->uuid));
$rule->filter = Filter::fromQueryString($rule->assign_filter);
}