mirror of https://github.com/Icinga/icinga2.git
Fix constant value for zone var override
This commit is contained in:
parent
e3e68caaa3
commit
a91bbe8acd
|
@ -152,10 +152,11 @@ bool DaemonUtility::ValidateConfigFiles(const std::vector<std::string>& configs,
|
|||
if (systemNS->Contains("ZonesStageVarDir")) {
|
||||
zonesVarDir = systemNS->Get("ZonesStageVarDir");
|
||||
|
||||
Log(LogDebug, "DaemonUtility")
|
||||
Log(LogInformation, "DaemonUtility")
|
||||
<< "Overriding zones var directory with '" << zonesVarDir << "' for cluster config sync staging.";
|
||||
}
|
||||
|
||||
|
||||
if (Utility::PathExists(zonesVarDir))
|
||||
Utility::Glob(zonesVarDir + "/*", std::bind(&IncludeNonLocalZone, _1, "_cluster", std::ref(success)), GlobDirectory);
|
||||
|
||||
|
|
|
@ -410,7 +410,7 @@ void ApiListener::AsyncTryActivateZonesStage(const String& stageConfigDir, const
|
|||
|
||||
args->Add("--validate");
|
||||
args->Add("--define");
|
||||
args->Add("System.ZonesStageVarDir='" + GetApiZonesStageDir() + "'");
|
||||
args->Add("System.ZonesStageVarDir=" + GetApiZonesStageDir());
|
||||
|
||||
Process::Ptr process = new Process(Process::PrepareCommand(args));
|
||||
process->SetTimeout(300);
|
||||
|
|
Loading…
Reference in New Issue