mirror of https://github.com/Icinga/icinga2.git
parent
c7af804cfd
commit
9f8cb8dd36
|
@ -200,12 +200,7 @@ bool Downtime::IsExpired(void) const
|
||||||
bool Downtime::HasValidConfigOwner(void) const
|
bool Downtime::HasValidConfigOwner(void) const
|
||||||
{
|
{
|
||||||
String configOwner = GetConfigOwner();
|
String configOwner = GetConfigOwner();
|
||||||
|
return configOwner.IsEmpty() || GetObject<ScheduledDowntime>(configOwner);
|
||||||
if (!configOwner.IsEmpty()) {
|
|
||||||
return (GetObject("ScheduledDowntime", configOwner) != ScheduledDowntime::Ptr());
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int Downtime::GetNextDowntimeID(void)
|
int Downtime::GetNextDowntimeID(void)
|
||||||
|
|
Loading…
Reference in New Issue