Downtime#HasValidConfigOwner(): wait for ScheduledDowntimes

refs #6542
This commit is contained in:
Alexander A. Klimov 2018-12-06 12:50:48 +01:00
parent bbcf469af1
commit 39e0d787e8
1 changed files with 4 additions and 0 deletions

View File

@ -210,6 +210,10 @@ bool Downtime::IsExpired() const
bool Downtime::HasValidConfigOwner() const
{
if (!ScheduledDowntime::AllConfigIsLoaded()) {
return true;
}
String configOwner = GetConfigOwner();
return configOwner.IsEmpty() || GetObject<ScheduledDowntime>(configOwner);
}