mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
parent
2a40a71ffa
commit
419500e55e
@ -751,6 +751,11 @@ ExpressionResult ImportExpression::DoEvaluate(ScriptFrame& frame, DebugHint *dhi
|
|||||||
if (!item)
|
if (!item)
|
||||||
BOOST_THROW_EXCEPTION(ScriptError("Import references unknown template: '" + name + "'", m_DebugInfo));
|
BOOST_THROW_EXCEPTION(ScriptError("Import references unknown template: '" + name + "'", m_DebugInfo));
|
||||||
|
|
||||||
|
Dictionary::Ptr scope = item->GetScope();
|
||||||
|
|
||||||
|
if (scope)
|
||||||
|
scope->CopyTo(frame.Locals);
|
||||||
|
|
||||||
ExpressionResult result = item->GetExpression()->Evaluate(frame, dhint);
|
ExpressionResult result = item->GetExpression()->Evaluate(frame, dhint);
|
||||||
CHECK_RESULT(result);
|
CHECK_RESULT(result);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user