mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 06:34:42 +02:00
Downtime#HasValidConfigOwner(): wait for ScheduledDowntimes
refs #6542 (cherry picked from commit 39e0d787e82c187de64b29e4979f4caac0907441)
This commit is contained in:
parent
7c71218d88
commit
a24256993c
@ -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