From 1c8531fc0d7f8e49e6ade90fb38b6e7b423f2b5d Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Sun, 8 Nov 2015 14:06:20 +0100 Subject: [PATCH] Fix: 'api setup' should create a user even when api feature is already enabled fixes #10560 --- lib/cli/apisetuputility.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/cli/apisetuputility.cpp b/lib/cli/apisetuputility.cpp index 951d47995..585432955 100644 --- a/lib/cli/apisetuputility.cpp +++ b/lib/cli/apisetuputility.cpp @@ -45,15 +45,6 @@ String ApiSetupUtility::GetConfdPath(void) bool ApiSetupUtility::SetupMaster(const String& cn, bool prompt_restart) { - /* if the 'api' feature is enabled we can safely assume - * that either 'api setup' was run, or the user manually - * enabled the api including all certificates e.g. by 'node wizard' in <= v2.3.x - */ - if (FeatureUtility::CheckFeatureEnabled("api")) { - Log(LogInformation, "cli", "'api' feature already enabled, skipping feature enable and master certificate creation."); - return true; - } - if (!SetupMasterCertificates(cn)) return false; -- 2.40.0