mirror of https://github.com/Icinga/icinga2.git
parent
f0f3412f2c
commit
4bc4defc97
|
@ -1396,8 +1396,13 @@ Value HostsTable::ParentsAccessor(const Value& row)
|
|||
|
||||
Value HostsTable::ChildsAccessor(const Value& row)
|
||||
{
|
||||
/* TODO */
|
||||
return Empty;
|
||||
Array::Ptr childs = boost::make_shared<Array>();
|
||||
|
||||
BOOST_FOREACH(const Host::Ptr& child, static_cast<Host::Ptr>(row)->GetChildHosts()) {
|
||||
childs->Add(child->GetName());
|
||||
}
|
||||
|
||||
return childs;
|
||||
}
|
||||
|
||||
Value HostsTable::NumServicesAccessor(const Value& row)
|
||||
|
|
Loading…
Reference in New Issue