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