mirror of https://github.com/Icinga/icinga2.git
Merge pull request #6707 from Icinga/bugfix/compat-objects-path
Fix regression for wrong objects.cache path overwriting icinga2.debug file
This commit is contained in:
commit
aebe6da168
|
@ -559,7 +559,8 @@ void StatusDataWriter::UpdateObjectsCache()
|
|||
{
|
||||
CONTEXT("Writing objects.cache file");
|
||||
|
||||
String objectsPath = Configuration::ObjectsPath;
|
||||
/* Use the compat path here from the .ti generated class. */
|
||||
String objectsPath = GetObjectsPath();
|
||||
|
||||
std::fstream objectfp;
|
||||
String tempObjectsPath = Utility::CreateTempFile(objectsPath + ".XXXXXX", 0644, objectfp);
|
||||
|
|
Loading…
Reference in New Issue