mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +02:00
parent
7fc7cde6a1
commit
147f69a8f6
@ -118,6 +118,14 @@ std::vector<ConfigObject::Ptr> FilterUtility::GetFilterTargets(const QueryDescri
|
|||||||
ScriptFrame frame;
|
ScriptFrame frame;
|
||||||
frame.Sandboxed = true;
|
frame.Sandboxed = true;
|
||||||
|
|
||||||
|
Dictionary::Ptr filter_vars = query->Get("filter_vars");
|
||||||
|
if (filter_vars) {
|
||||||
|
ObjectLock olock(filter_vars);
|
||||||
|
BOOST_FOREACH(const Dictionary::Pair& kv, filter_vars) {
|
||||||
|
frame.Locals->Set(kv.first, kv.second);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
String varName = utype->GetName();
|
String varName = utype->GetName();
|
||||||
boost::algorithm::to_lower(varName);
|
boost::algorithm::to_lower(varName);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user