Merge pull request #9028 from Icinga/bugfix/icingadb-zone-parent

IcingaDB: actually write parent to parent_id of zones
This commit is contained in:
Julian Brost 2021-11-08 18:08:48 +01:00 committed by GitHub
commit 524fe92a1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1160,7 +1160,7 @@ bool IcingaDB::PrepareObject(const ConfigObject::Ptr& object, Dictionary::Ptr& a
Zone::Ptr parent = zone->GetParent();
if (parent) {
attributes->Set("parent_id", GetObjectIdentifier(zone));
attributes->Set("parent_id", GetObjectIdentifier(parent));
}
auto parentsRaw (zone->GetAllParentsRaw());