mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 23:24:09 +02:00
parent
22f3c5082d
commit
e50d3e6e5a
@ -360,6 +360,9 @@ bool ConfigItem::CommitNewItems(WorkQueue& upq)
|
|||||||
}
|
}
|
||||||
|
|
||||||
upq.Join();
|
upq.Join();
|
||||||
|
|
||||||
|
if (upq.HasExceptions())
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
} while (!items.empty());
|
} while (!items.empty());
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ void Dependency::OnAllConfigLoaded(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!m_Child)
|
if (!m_Child)
|
||||||
BOOST_THROW_EXCEPTION(ScriptError("Dependency '" << GetName() << "' references a child host/service which doesn't exist.", GetDebugInfo()));
|
BOOST_THROW_EXCEPTION(ScriptError("Dependency '" + GetName() + "' references a child host/service which doesn't exist.", GetDebugInfo()));
|
||||||
|
|
||||||
m_Child->AddDependency(this);
|
m_Child->AddDependency(this);
|
||||||
|
|
||||||
@ -96,7 +96,7 @@ void Dependency::OnAllConfigLoaded(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!m_Parent)
|
if (!m_Parent)
|
||||||
BOOST_THROW_EXCEPTION(ScriptError("Dependency '" << GetName() << "' references a parent host/service which doesn't exist.", GetDebugInfo()));
|
BOOST_THROW_EXCEPTION(ScriptError("Dependency '" + GetName() + "' references a parent host/service which doesn't exist.", GetDebugInfo()));
|
||||||
|
|
||||||
m_Parent->AddReverseDependency(this);
|
m_Parent->AddReverseDependency(this);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user