From: Michael Friedrich Date: Thu, 10 Dec 2015 21:21:29 +0000 (+0100) Subject: Fix that cluster config sync ignores zones.d directory from API config packages X-Git-Tag: v2.4.2~138 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1f5a216a01a6eff31c371150d65e4f9f68d6581a;p=icinga2 Fix that cluster config sync ignores zones.d directory from API config packages fixes #10819 --- diff --git a/lib/remote/apilistener-filesync.cpp b/lib/remote/apilistener-filesync.cpp index 69928ddca..891deab96 100644 --- a/lib/remote/apilistener-filesync.cpp +++ b/lib/remote/apilistener-filesync.cpp @@ -34,8 +34,7 @@ REGISTER_APIFUNCTION(Update, config, &ApiListener::ConfigUpdateHandler); bool ApiListener::IsConfigMaster(const Zone::Ptr& zone) { - String path = Application::GetZonesDir() + "/" + zone->GetName(); - return Utility::PathExists(path); + return !ConfigCompiler::GetZoneDirs(zone->GetName()).empty(); } void ApiListener::ConfigGlobHandler(Dictionary::Ptr& config, const String& path, const String& file)