mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 06:34:42 +02:00
parent
949b129c65
commit
c06f6d7aeb
@ -521,8 +521,6 @@ bool ConfigItem::CommitItems(const ActivationContext::Ptr& context, WorkQueue& u
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
ASSERT(newItems.size() > 0);
|
|
||||||
|
|
||||||
ApplyRule::CheckMatches();
|
ApplyRule::CheckMatches();
|
||||||
|
|
||||||
/* log stats for external parsers */
|
/* log stats for external parsers */
|
||||||
@ -593,6 +591,9 @@ bool ConfigItem::RunWithActivationContext(const Function::Ptr& function)
|
|||||||
{
|
{
|
||||||
ActivationScope scope;
|
ActivationScope scope;
|
||||||
|
|
||||||
|
if (!function)
|
||||||
|
BOOST_THROW_EXCEPTION(ScriptError("'function' argument must not be null."));
|
||||||
|
|
||||||
{
|
{
|
||||||
ScriptFrame frame;
|
ScriptFrame frame;
|
||||||
function->Invoke();
|
function->Invoke();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user