]> granicus.if.org Git - icinga2/commitdiff
Cli: Fix log for CA copy in 'agent setup --master'
authorMichael Friedrich <michael.friedrich@netways.de>
Thu, 30 Oct 2014 14:19:09 +0000 (15:19 +0100)
committerMichael Friedrich <michael.friedrich@netways.de>
Thu, 30 Oct 2014 14:19:09 +0000 (15:19 +0100)
refs #7248

lib/cli/agentsetupcommand.cpp

index f5282236bdb94279b681c41a5e534359a0d82c30..82cf1e6a03cce338ccce04597d2bc6265b997501 100644 (file)
@@ -157,11 +157,10 @@ int AgentSetupCommand::SetupMaster(const boost::program_options::variables_map&
        /* Copy CA certificate to /etc/icinga2/pki */
 
        String ca = PkiUtility::GetLocalCaPath() + "/ca.crt";
+       String target_ca = pki_path + "/ca.crt";
 
        Log(LogInformation, "cli")
-           << "Copying CA certificate to '" << ca << "'.";
-
-       String target_ca = pki_path + "/ca.crt";
+           << "Copying CA certificate to '" << target_ca << "'.";
 
        /* does not overwrite existing files! */
        Utility::CopyFile(ca, target_ca);