mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 21:55:03 +02:00
parent
bbcf469af1
commit
39e0d787e8
@ -210,6 +210,10 @@ bool Downtime::IsExpired() const
|
|||||||
|
|
||||||
bool Downtime::HasValidConfigOwner() const
|
bool Downtime::HasValidConfigOwner() const
|
||||||
{
|
{
|
||||||
|
if (!ScheduledDowntime::AllConfigIsLoaded()) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
String configOwner = GetConfigOwner();
|
String configOwner = GetConfigOwner();
|
||||||
return configOwner.IsEmpty() || GetObject<ScheduledDowntime>(configOwner);
|
return configOwner.IsEmpty() || GetObject<ScheduledDowntime>(configOwner);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user