mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 23:24:09 +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));
|
attributes->Set("parent_id", GetObjectIdentifier(zone));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auto parentsRaw (zone->GetAllParentsRaw());
|
||||||
|
attributes->Set("depth", parentsRaw.size());
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user