[icinga-checkins] icinga.org: icinga2/master: Change wording for the function validation message

git at icinga.org git at icinga.org
Fri Aug 12 07:58:47 CEST 2016


Module: icinga2
Branch: master
Commit: 06b5f06494afb3b8e7000f2804bd3d18dbdd0dd9
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=06b5f06494afb3b8e7000f2804bd3d18dbdd0dd9

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Fri Aug 12 07:58:24 2016 +0200

Change wording for the function validation message

refs #12393

---

 tools/mkclass/classcompiler.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/mkclass/classcompiler.cpp b/tools/mkclass/classcompiler.cpp
index 8277826..1b95e67 100644
--- a/tools/mkclass/classcompiler.cpp
+++ b/tools/mkclass/classcompiler.cpp
@@ -525,7 +525,7 @@ void ClassCompiler::HandleClass(const Klass& klass, const ClassDebugInfo&)
 		m_Impl << "\t" << "if (avalue.IsObjectType<Function>()) {" << std::endl
 		       << "\t\t" << "Function::Ptr func = avalue;" << std::endl
 		       << "\t\t" << "if (func->IsDeprecated())" << std::endl
-		       << "\t\t\t" << "Log(LogWarning, \"" << klass.Name << "\") << \"Field '" << field.Name << "' for object '\" << dynamic_cast<ConfigObject *>(this)->GetName() << \"' of type '\" << dynamic_cast<ConfigObject *>(this)->GetType()->GetName() << \"' is set to a deprecated function: \" << func->GetName();" << std::endl
+		       << "\t\t\t" << "Log(LogWarning, \"" << klass.Name << "\") << \"Attribute '" << field.Name << "' for object '\" << dynamic_cast<ConfigObject *>(this)->GetName() << \"' of type '\" << dynamic_cast<ConfigObject *>(this)->GetType()->GetName() << \"' is set to a deprecated function: \" << func->GetName();" << std::endl
 		       << "\t" << "}" << std::endl << std::endl;
 
 		std::string ftype = FieldTypeToIcingaName(field, true);



More information about the icinga-checkins mailing list