mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Merge pull request #9028 from Icinga/bugfix/icingadb-zone-parent
IcingaDB: actually write parent to parent_id of zones
This commit is contained in:
commit
524fe92a1d
@ -1160,7 +1160,7 @@ bool IcingaDB::PrepareObject(const ConfigObject::Ptr& object, Dictionary::Ptr& a
|
|||||||
|
|
||||||
Zone::Ptr parent = zone->GetParent();
|
Zone::Ptr parent = zone->GetParent();
|
||||||
if (parent) {
|
if (parent) {
|
||||||
attributes->Set("parent_id", GetObjectIdentifier(zone));
|
attributes->Set("parent_id", GetObjectIdentifier(parent));
|
||||||
}
|
}
|
||||||
|
|
||||||
auto parentsRaw (zone->GetAllParentsRaw());
|
auto parentsRaw (zone->GetAllParentsRaw());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user