From 1f5a216a01a6eff31c371150d65e4f9f68d6581a Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Thu, 10 Dec 2015 22:21:29 +0100 Subject: [PATCH] Fix that cluster config sync ignores zones.d directory from API config packages fixes #10819 --- lib/remote/apilistener-filesync.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)