mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-24 22:24:44 +02:00
parent
7985e93ca0
commit
c415dd3468
@ -222,16 +222,11 @@ void ApiListener::SendConfigUpdate(const JsonRpcConnection::Ptr& aclient)
|
|||||||
BOOST_FOREACH(const Zone::Ptr& zone, ConfigType::GetObjectsByType<Zone>()) {
|
BOOST_FOREACH(const Zone::Ptr& zone, ConfigType::GetObjectsByType<Zone>()) {
|
||||||
String zoneDir = zonesDir + "/" + zone->GetName();
|
String zoneDir = zonesDir + "/" + zone->GetName();
|
||||||
|
|
||||||
if (!zone->IsChildOf(azone) && !zone->IsGlobal()) {
|
if (!zone->IsChildOf(azone) && !zone->IsGlobal())
|
||||||
Log(LogNotice, "ApiListener")
|
|
||||||
<< "Skipping sync for '" << zone->GetName() << "'. Not a child of zone '" << azone->GetName() << "'.";
|
|
||||||
continue;
|
continue;
|
||||||
}
|
|
||||||
if (!Utility::PathExists(zoneDir)) {
|
if (!Utility::PathExists(zoneDir))
|
||||||
Log(LogNotice, "ApiListener")
|
|
||||||
<< "Ignoring sync for '" << zone->GetName() << "'. Zone directory '" << zoneDir << "' does not exist.";
|
|
||||||
continue;
|
continue;
|
||||||
}
|
|
||||||
|
|
||||||
Log(LogInformation, "ApiListener")
|
Log(LogInformation, "ApiListener")
|
||||||
<< "Syncing " << (zone->IsGlobal() ? "global " : "")
|
<< "Syncing " << (zone->IsGlobal() ? "global " : "")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user