mirror of https://github.com/Icinga/icinga2.git
Fix regression for wrong objects.cache path overwriting icinga2.debug file
The 'statusdata' feature is deprecated, although it affects 'object list'. fixes #6705
This commit is contained in:
parent
582d8f4961
commit
9f6c66c41a
|
@ -559,7 +559,8 @@ void StatusDataWriter::UpdateObjectsCache()
|
||||||
{
|
{
|
||||||
CONTEXT("Writing objects.cache file");
|
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;
|
std::fstream objectfp;
|
||||||
String tempObjectsPath = Utility::CreateTempFile(objectsPath + ".XXXXXX", 0644, objectfp);
|
String tempObjectsPath = Utility::CreateTempFile(objectsPath + ".XXXXXX", 0644, objectfp);
|
||||||
|
|
Loading…
Reference in New Issue