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:
Gunnar Beutner 2017-12-21 13:46:32 +01:00 committed by GitHub
commit bff6e39b7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 12 deletions

View File

@ -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) {