Exporter: don't export UUIDs for non-Icinga objects

fixes #2644
This commit is contained in:
Thomas Gelf 2022-10-25 10:59:16 +02:00
parent 9892039b0e
commit 470137b5c2
2 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,7 @@ v1.10.2 (unreleased)
### Configuration Baskets
* FEATURE: more details shown in error messages related to invalid characters (#2646)
* FIX: snapshots for Baskets containing Baskets failed since v1.10 (#2644)
### Internals
* FIX: issue with empty activity log, deprecate outdated method (#2630)

View File

@ -248,6 +248,7 @@ class Exporter
$props['settings'] = (object) $object->getSettings(); // Already sorted
}
}
unset($props['uuid']); // Not yet
if (! $this->showDefaults) {
foreach ($props as $key => $value) {
// We assume NULL as a default value for all non-IcingaObject properties