mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-13 16:54:27 +02:00
Add closing quotationmarks in Validator for influxdb writer config
This commit is contained in:
parent
01d3a1d382
commit
8c68c6e9d8
@ -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…
x
Reference in New Issue
Block a user