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

IcingaDB: actually write parent to parent_id of zones
This commit is contained in:
Noah Hilverling 2021-11-11 14:18:40 +01:00 committed by GitHub
commit 88a16ff752
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1159,7 +1159,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());