From c5b13ff2b19ef562459a11da6bf3b022c6890b00 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 74b55e020..61b7fce1c 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) -- 2.40.0