From 39e0d787e82c187de64b29e4979f4caac0907441 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Thu, 6 Dec 2018 12:50:48 +0100 Subject: [PATCH] Downtime#HasValidConfigOwner(): wait for ScheduledDowntimes refs #6542 --- lib/icinga/downtime.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/icinga/downtime.cpp b/lib/icinga/downtime.cpp index 336329bc2..4180747ac 100644 --- a/lib/icinga/downtime.cpp +++ b/lib/icinga/downtime.cpp @@ -210,6 +210,10 @@ bool Downtime::IsExpired() const bool Downtime::HasValidConfigOwner() const { + if (!ScheduledDowntime::AllConfigIsLoaded()) { + return true; + } + String configOwner = GetConfigOwner(); return configOwner.IsEmpty() || GetObject(configOwner); } -- 2.40.0