mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-22 21:24:41 +02:00
Replace if( with if (
This commit is contained in:
parent
8ca57cba03
commit
cb6f1043e1
@ -238,6 +238,7 @@ void GraphiteWriter::ValidateNameTemplates(const String& location, const Graphit
|
|||||||
BOOST_THROW_EXCEPTION(ScriptError("Validation failed for " +
|
BOOST_THROW_EXCEPTION(ScriptError("Validation failed for " +
|
||||||
location + ": Closing $ not found in macro format string '" + object->GetHostNameTemplate() + "'.", object->GetDebugInfo()));
|
location + ": Closing $ not found in macro format string '" + object->GetHostNameTemplate() + "'.", object->GetDebugInfo()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Utility::ValidateMacroString(object->GetServiceNameTemplate())) {
|
if (!Utility::ValidateMacroString(object->GetServiceNameTemplate())) {
|
||||||
BOOST_THROW_EXCEPTION(ScriptError("Validation failed for " +
|
BOOST_THROW_EXCEPTION(ScriptError("Validation failed for " +
|
||||||
location + ": Closing $ not found in macro format string '" + object->GetServiceNameTemplate() + "'.", object->GetDebugInfo()));
|
location + ": Closing $ not found in macro format string '" + object->GetServiceNameTemplate() + "'.", object->GetDebugInfo()));
|
||||||
|
@ -146,6 +146,7 @@ void PerfdataWriter::ValidateFormatTemplates(const String& location, const Perfd
|
|||||||
BOOST_THROW_EXCEPTION(ScriptError("Validation failed for " +
|
BOOST_THROW_EXCEPTION(ScriptError("Validation failed for " +
|
||||||
location + ": Closing $ not found in macro format string '" + object->GetHostFormatTemplate() + "'.", object->GetDebugInfo()));
|
location + ": Closing $ not found in macro format string '" + object->GetHostFormatTemplate() + "'.", object->GetDebugInfo()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Utility::ValidateMacroString(object->GetServiceFormatTemplate())) {
|
if (!Utility::ValidateMacroString(object->GetServiceFormatTemplate())) {
|
||||||
BOOST_THROW_EXCEPTION(ScriptError("Validation failed for " +
|
BOOST_THROW_EXCEPTION(ScriptError("Validation failed for " +
|
||||||
location + ": Closing $ not found in macro format string '" + object->GetHostFormatTemplate() + "'.", object->GetDebugInfo()));
|
location + ": Closing $ not found in macro format string '" + object->GetHostFormatTemplate() + "'.", object->GetDebugInfo()));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user