Fix: 'api setup' should create a user even when api feature is already enabled

fixes #10560
This commit is contained in:
Michael Friedrich 2015-11-08 14:06:20 +01:00
parent 1d25a254c0
commit 1c8531fc0d
1 changed files with 0 additions and 9 deletions

View File

@ -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;