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