mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 05:34:48 +02:00
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:
commit
88a16ff752
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user