mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
parent
2a40a71ffa
commit
419500e55e
@ -751,6 +751,11 @@ ExpressionResult ImportExpression::DoEvaluate(ScriptFrame& frame, DebugHint *dhi
|
||||
if (!item)
|
||||
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);
|
||||
CHECK_RESULT(result);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user