Cli: Still ask for CN in 'node wizard'

refs #9471
This commit is contained in:
Michael Friedrich 2015-06-25 13:28:16 +02:00
parent ec3f1c6320
commit 3e3588b9fb
1 changed files with 13 additions and 2 deletions

View File

@ -442,9 +442,20 @@ wizard_ticket:
} else { } else {
/* master setup */ /* master setup */
std::cout << ConsoleColorTag(Console_Bold) << "Starting the Master setup routine...\n"; std::cout << ConsoleColorTag(Console_Bold) << "Starting the Master setup routine...\n";
std::cout << ConsoleColorTag(Console_Bold) << "Checking the 'api' feature...\n";
String cn = Utility::GetFQDN(); /* CN */
std::cout << ConsoleColorTag(Console_Bold) << "Please specifiy the common name" << ConsoleColorTag(Console_Normal) << " (CN) [" << Utility::GetFQDN() << "]: ";
std::getline(std::cin, answer);
boost::algorithm::to_lower(answer);
if (answer.empty())
answer = Utility::GetFQDN();
String cn = answer;
cn.Trim();
std::cout << ConsoleColorTag(Console_Normal) << "Checking the 'api' feature...\n";
if (FeatureUtility::CheckFeatureDisabled("api")) { if (FeatureUtility::CheckFeatureDisabled("api")) {
std::cout << ConsoleColorTag(Console_Bold) << "'api' feature not enabled, running 'api setup' now.\n"; std::cout << ConsoleColorTag(Console_Bold) << "'api' feature not enabled, running 'api setup' now.\n";