mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-24 14:14:45 +02:00
RedisWriter: Add depth attribute to zone
This commit is contained in:
parent
8421a98a2c
commit
11d5415193
@ -713,6 +713,9 @@ bool RedisWriter::PrepareObject(const ConfigObject::Ptr& object, Dictionary::Ptr
|
||||
attributes->Set("parent_id", GetObjectIdentifier(zone));
|
||||
}
|
||||
|
||||
auto parentsRaw (zone->GetAllParentsRaw());
|
||||
attributes->Set("depth", parentsRaw.size());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user