Skip to content

Commit

Permalink
Exporter: don't export UUIDs for non-Icinga objects
Browse files Browse the repository at this point in the history
fixes #2644
  • Loading branch information
Thomas-Gelf committed Oct 25, 2022
1 parent 7ce5621 commit acc3c6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/82-Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions library/Director/Data/Exporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ protected function exportDbObject(DbObject $object)
$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
Expand Down

0 comments on commit acc3c6b

Please sign in to comment.