mirror of https://github.com/Icinga/icinga2.git
Merge pull request #10174 from open-i-gmbh/fix/influxdbwriter-validator-add-closing-quotation-marks
Add closing quotationmarks in Validator for influxdb writer config
This commit is contained in:
commit
0fff4153ef
1
AUTHORS
1
AUTHORS
|
@ -255,6 +255,7 @@ Sascha Westermann <sascha.westermann@hl-services.de>
|
||||||
Sebastian Brückner <mail@invlid.com>
|
Sebastian Brückner <mail@invlid.com>
|
||||||
Sebastian Chrostek <sebastian@chrostek.net>
|
Sebastian Chrostek <sebastian@chrostek.net>
|
||||||
Sebastian Eikenberg <eikese@mail.uni-paderborn.de>
|
Sebastian Eikenberg <eikese@mail.uni-paderborn.de>
|
||||||
|
Sebastian Grund <s.grund@openinfrastructure.de>
|
||||||
Sebastian Marsching <sebastian-git-2016@marsching.com>
|
Sebastian Marsching <sebastian-git-2016@marsching.com>
|
||||||
Silas <67681686+Tqnsls@users.noreply.github.com>
|
Silas <67681686+Tqnsls@users.noreply.github.com>
|
||||||
Simon Murray <spjmurray@yahoo.co.uk>
|
Simon Murray <spjmurray@yahoo.co.uk>
|
||||||
|
|
|
@ -571,7 +571,7 @@ void InfluxdbCommonWriter::ValidateHostTemplate(const Lazy<Dictionary::Ptr>& lva
|
||||||
ObjectLock olock(tags);
|
ObjectLock olock(tags);
|
||||||
for (const Dictionary::Pair& pair : tags) {
|
for (const Dictionary::Pair& pair : tags) {
|
||||||
if (!MacroProcessor::ValidateMacroString(pair.second))
|
if (!MacroProcessor::ValidateMacroString(pair.second))
|
||||||
BOOST_THROW_EXCEPTION(ValidationError(this, { "host_template", "tags", pair.first }, "Closing $ not found in macro format string '" + pair.second));
|
BOOST_THROW_EXCEPTION(ValidationError(this, { "host_template", "tags", pair.first }, "Closing $ not found in macro format string '" + pair.second + "'."));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -589,7 +589,7 @@ void InfluxdbCommonWriter::ValidateServiceTemplate(const Lazy<Dictionary::Ptr>&
|
||||||
ObjectLock olock(tags);
|
ObjectLock olock(tags);
|
||||||
for (const Dictionary::Pair& pair : tags) {
|
for (const Dictionary::Pair& pair : tags) {
|
||||||
if (!MacroProcessor::ValidateMacroString(pair.second))
|
if (!MacroProcessor::ValidateMacroString(pair.second))
|
||||||
BOOST_THROW_EXCEPTION(ValidationError(this, { "service_template", "tags", pair.first }, "Closing $ not found in macro format string '" + pair.second));
|
BOOST_THROW_EXCEPTION(ValidationError(this, { "service_template", "tags", pair.first }, "Closing $ not found in macro format string '" + pair.second + "'."));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue