Skip to content

Commit 0fff415

Browse files
authored
Merge pull request #10174 from open-i-gmbh/fix/influxdbwriter-validator-add-closing-quotation-marks
Add closing quotationmarks in Validator for influxdb writer config
2 parents 01d3a1d + 90c76ad commit 0fff415

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ Sascha Westermann <[email protected]>
255255
Sebastian Brückner <[email protected]>
256256
Sebastian Chrostek <[email protected]>
257257
Sebastian Eikenberg <[email protected]>
258+
Sebastian Grund <[email protected]>
258259
Sebastian Marsching <[email protected]>
259260
260261
Simon Murray <[email protected]>

lib/perfdata/influxdbcommonwriter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ void InfluxdbCommonWriter::ValidateHostTemplate(const Lazy<Dictionary::Ptr>& lva
571571
ObjectLock olock(tags);
572572
for (const Dictionary::Pair& pair : tags) {
573573
if (!MacroProcessor::ValidateMacroString(pair.second))
574-
BOOST_THROW_EXCEPTION(ValidationError(this, { "host_template", "tags", pair.first }, "Closing $ not found in macro format string '" + pair.second));
574+
BOOST_THROW_EXCEPTION(ValidationError(this, { "host_template", "tags", pair.first }, "Closing $ not found in macro format string '" + pair.second + "'."));
575575
}
576576
}
577577
}
@@ -589,7 +589,7 @@ void InfluxdbCommonWriter::ValidateServiceTemplate(const Lazy<Dictionary::Ptr>&
589589
ObjectLock olock(tags);
590590
for (const Dictionary::Pair& pair : tags) {
591591
if (!MacroProcessor::ValidateMacroString(pair.second))
592-
BOOST_THROW_EXCEPTION(ValidationError(this, { "service_template", "tags", pair.first }, "Closing $ not found in macro format string '" + pair.second));
592+
BOOST_THROW_EXCEPTION(ValidationError(this, { "service_template", "tags", pair.first }, "Closing $ not found in macro format string '" + pair.second + "'."));
593593
}
594594
}
595595
}

0 commit comments

Comments
 (0)