mirror of https://github.com/Icinga/icinga2.git
Fix that cluster config sync ignores zones.d directory from API config packages
fixes #10819
This commit is contained in:
parent
15ca9987fa
commit
c5b13ff2b1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue