| 45 | } |
| 46 | |
| 47 | void HostGroup::EvaluateObjectRules(const Host::Ptr& host) |
| 48 | { |
| 49 | CONTEXT("Evaluating group memberships for host '" << host->GetName() << "'"); |
| 50 | |
| 51 | for (const ConfigItem::Ptr& group : ConfigItem::GetItems(HostGroup::TypeInstance)) |
| 52 | { |
| 53 | if (!group->GetFilter()) |
| 54 | continue; |
| 55 | |
| 56 | EvaluateObjectRule(host, group); |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | std::set<Host::Ptr> HostGroup::GetMembers() const |
| 61 | { |