mirror of https://github.com/Icinga/icinga2.git
Merge pull request #5901 from Icinga/fix/do-not-replace-colons-in-output
Do not replace colons in plugin output
This commit is contained in:
commit
bff6e39b7d
|
@ -615,12 +615,6 @@ String CompatUtility::GetCheckResultOutput(const CheckResult::Ptr& cr)
|
|||
|
||||
String raw_output = cr->GetOutput();
|
||||
|
||||
/*
|
||||
* replace semi-colons with colons in output
|
||||
* semi-colon is used as delimiter in various interfaces
|
||||
*/
|
||||
boost::algorithm::replace_all(raw_output, ";", ":");
|
||||
|
||||
size_t line_end = raw_output.Find("\n");
|
||||
|
||||
return raw_output.SubStr(0, line_end);
|
||||
|
@ -636,12 +630,6 @@ String CompatUtility::GetCheckResultLongOutput(const CheckResult::Ptr& cr)
|
|||
|
||||
String raw_output = cr->GetOutput();
|
||||
|
||||
/*
|
||||
* replace semi-colons with colons in output
|
||||
* semi-colon is used as delimiter in various interfaces
|
||||
*/
|
||||
boost::algorithm::replace_all(raw_output, ";", ":");
|
||||
|
||||
size_t line_end = raw_output.Find("\n");
|
||||
|
||||
if (line_end > 0 && line_end != String::NPos) {
|
||||
|
|
Loading…
Reference in New Issue