]> granicus.if.org Git - icinga2/commitdiff
Fix incorrect return value for ApiSetupUtility::SetupMaster
authorGunnar Beutner <gunnar@beutner.name>
Sun, 25 Oct 2015 18:57:57 +0000 (19:57 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Sun, 25 Oct 2015 18:57:57 +0000 (19:57 +0100)
refs #9471

lib/cli/apisetuputility.cpp

index e9f53ae469017f4ecbe031a5d85e189bfd1547b6..9acae706c020ec9db8c73360c3e9add8ec561ce4 100644 (file)
@@ -51,7 +51,7 @@ bool ApiSetupUtility::SetupMaster(const String& cn)
         */
        if (FeatureUtility::CheckFeatureEnabled("api")) {
                Log(LogInformation, "cli", "'api' feature already enabled, skipping feature enable and master certificate creation.");
-               return false;
+               return true;
        }
 
        if (!SetupMasterCertificates(cn))