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
db0e8c676e
commit
1f5a216a01
|
@ -34,8 +34,7 @@ REGISTER_APIFUNCTION(Update, config, &ApiListener::ConfigUpdateHandler);
|
||||||
|
|
||||||
bool ApiListener::IsConfigMaster(const Zone::Ptr& zone)
|
bool ApiListener::IsConfigMaster(const Zone::Ptr& zone)
|
||||||
{
|
{
|
||||||
String path = Application::GetZonesDir() + "/" + zone->GetName();
|
return !ConfigCompiler::GetZoneDirs(zone->GetName()).empty();
|
||||||
return Utility::PathExists(path);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ApiListener::ConfigGlobHandler(Dictionary::Ptr& config, const String& path, const String& file)
|
void ApiListener::ConfigGlobHandler(Dictionary::Ptr& config, const String& path, const String& file)
|
||||||
|
|
Loading…
Reference in New Issue