mirror of
https://github.com/Icinga/icinga2.git
synced 2026-06-09 08:42:59 -04:00
parent
949b129c65
commit
c06f6d7aeb
1 changed files with 3 additions and 2 deletions
|
|
@ -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 a new issue