mirror of https://github.com/Icinga/icinga2.git
Fix objects cache dump in compat for multiline vars
Multiline vars should be written as: _test test1\ntest2 And not _test test1 test2 fixes #9328 Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
This commit is contained in:
parent
11574e0bf1
commit
46fea5892c
|
@ -530,7 +530,7 @@ void StatusDataWriter::DumpCustomAttributes(std::ostream& fp, const CustomVarObj
|
|||
value = JsonEncode(kv.second);
|
||||
is_json = true;
|
||||
} else
|
||||
value = kv.second;
|
||||
value = CompatUtility::EscapeString(kv.second);
|
||||
|
||||
fp << "\t" "_" << kv.first << "\t" << value << "\n";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue