| 234 | } |
| 235 | |
| 236 | bool 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 | |
| 246 | int Downtime::GetNextDowntimeID() |
| 247 | { |
no test coverage detected