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
parent 15ca9987fa
commit c5b13ff2b1
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)