mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 16:14:09 +02:00
parent
0e34968e8f
commit
6d7e028f92
@ -586,11 +586,12 @@ Value AExpression::OpFor(const AExpression* expr, const Dictionary::Ptr& locals)
|
|||||||
|
|
||||||
ObjectLock olock(arr);
|
ObjectLock olock(arr);
|
||||||
BOOST_FOREACH(const Value& value, arr) {
|
BOOST_FOREACH(const Value& value, arr) {
|
||||||
locals->Set(varname, value);
|
Dictionary::Ptr xlocals = make_shared<Dictionary>();
|
||||||
ascope->Evaluate(locals);
|
xlocals->Set("__parent", locals);
|
||||||
}
|
xlocals->Set(varname, value);
|
||||||
|
|
||||||
locals->Remove(varname);
|
ascope->Evaluate(xlocals);
|
||||||
|
}
|
||||||
|
|
||||||
return Empty;
|
return Empty;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user