[icinga-checkins] icinga.org: icinga2/master: Fix wrong log message in 'node setup' cli command

git at icinga.org git at icinga.org
Tue Feb 23 16:56:14 CET 2016


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

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Tue Feb 23 16:55:45 2016 +0100

Fix wrong log message in 'node setup' cli command

fixes #11209

---

 lib/cli/nodesetupcommand.cpp |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/cli/nodesetupcommand.cpp b/lib/cli/nodesetupcommand.cpp
index a86d022..33d9177 100644
--- a/lib/cli/nodesetupcommand.cpp
+++ b/lib/cli/nodesetupcommand.cpp
@@ -293,10 +293,9 @@ int NodeSetupCommand::SetupNode(const boost::program_options::variables_map& vm,
 	boost::shared_ptr<X509> trustedcert = GetX509Certificate(vm["trustedcert"].as<std::string>());
 
 	Log(LogInformation, "cli")
-	    << "Verifying trusted certificate from file '" << trustedcert << "'.";
+	    << "Verifying trusted certificate file '" << vm["trustedcert"].as<std::string>() << "'.";
 
 	/* retrieve CN and pass it (defaults to FQDN) */
-
 	String cn = Utility::GetFQDN();
 
 	if (vm.count("cn"))



More information about the icinga-checkins mailing list