MCPcopy Create free account
hub / github.com/Icinga/icinga2 / HasValidConfigOwner

Method HasValidConfigOwner

lib/icinga/downtime.cpp:236–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236bool Downtime::HasValidConfigOwner() const
237{
238 if (!ScheduledDowntime::AllConfigIsLoaded()) {
239 return true;
240 }
241
242 String configOwner = GetConfigOwner();
243 return configOwner.IsEmpty() || Zone::GetByName(GetAuthoritativeZone()) != Zone::GetLocalZone() || GetObject<ScheduledDowntime>(configOwner);
244}
245
246int Downtime::GetNextDowntimeID()
247{

Callers 1

Calls 1

IsEmptyMethod · 0.45

Tested by

no test coverage detected