mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-31 01:24:19 +02:00
parent
a3e0c9d898
commit
2f44581f14
@ -381,6 +381,7 @@ bool ConfigItem::ActivateItems(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
upq.Join();
|
upq.Join();
|
||||||
|
upq.ReportExceptions("ConfigItem");
|
||||||
|
|
||||||
#ifdef I2_DEBUG
|
#ifdef I2_DEBUG
|
||||||
BOOST_FOREACH(const DynamicType::Ptr& type, DynamicType::GetTypes()) {
|
BOOST_FOREACH(const DynamicType::Ptr& type, DynamicType::GetTypes()) {
|
||||||
|
@ -379,6 +379,9 @@ void LegacyTimePeriod::ProcessTimeRanges(const String& timeranges, tm *reference
|
|||||||
|
|
||||||
BOOST_FOREACH(const String& range, ranges) {
|
BOOST_FOREACH(const String& range, ranges) {
|
||||||
Dictionary::Ptr segment = ProcessTimeRange(range, reference);
|
Dictionary::Ptr segment = ProcessTimeRange(range, reference);
|
||||||
|
if (segment->Get("begin") >= segment->Get("end"))
|
||||||
|
BOOST_THROW_EXCEPTION(std::invalid_argument("Time period segment ends before it begins"));
|
||||||
|
|
||||||
result->Add(segment);
|
result->Add(segment);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user