Fix that cluster config sync ignores zones.d directory from API config packages

fixes #10819
This commit is contained in:
Michael Friedrich 2015-12-10 22:21:29 +01:00 committed by Gunnar Beutner
parent db0e8c676e
commit 1f5a216a01
1 changed files with 1 additions and 2 deletions

View File

@ -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)