]> granicus.if.org Git - icinga2/commitdiff
Fix wrong log message in 'node setup' cli command
authorMichael Friedrich <michael.friedrich@netways.de>
Tue, 23 Feb 2016 15:55:45 +0000 (16:55 +0100)
committerMichael Friedrich <michael.friedrich@netways.de>
Tue, 23 Feb 2016 15:55:45 +0000 (16:55 +0100)
fixes #11209

lib/cli/nodesetupcommand.cpp

index a86d02293fa039786403de702bf9c36472d4e34a..33d9177236c94f8ed01e9dbd173d3ffc0845345c 100644 (file)
@@ -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"))