mirror of https://github.com/Icinga/icinga2.git
parent
7ad7e28d7a
commit
5516427446
|
@ -127,7 +127,6 @@ int NodeWizardCommand::Run(const boost::program_options::variables_map& vm,
|
|||
<< " [" << Utility::GetFQDN() << "]: ";
|
||||
|
||||
std::getline(std::cin, answer);
|
||||
boost::algorithm::to_lower(answer);
|
||||
|
||||
if (answer.empty())
|
||||
answer = Utility::GetFQDN();
|
||||
|
@ -151,7 +150,6 @@ wizard_endpoint_loop_start:
|
|||
<< " (CN from your master setup): ";
|
||||
|
||||
std::getline(std::cin, answer);
|
||||
boost::algorithm::to_lower(answer);
|
||||
|
||||
if (answer.empty()) {
|
||||
Log(LogWarning, "cli", "Master CN is required! Please retry.");
|
||||
|
@ -182,7 +180,6 @@ wizard_endpoint_loop_start:
|
|||
<< ConsoleColorTag(Console_Normal) << " (Your master's IP address or FQDN): ";
|
||||
|
||||
std::getline(std::cin, answer);
|
||||
boost::algorithm::to_lower(answer);
|
||||
|
||||
if (answer.empty()) {
|
||||
Log(LogWarning, "cli", "Please enter the master's endpoint connection information.");
|
||||
|
@ -200,7 +197,6 @@ wizard_endpoint_loop_start:
|
|||
<< " [" << tmpPort << "]: ";
|
||||
|
||||
std::getline(std::cin, answer);
|
||||
boost::algorithm::to_lower(answer);
|
||||
|
||||
if (!answer.empty())
|
||||
tmpPort = answer;
|
||||
|
@ -230,7 +226,6 @@ wizard_master_host:
|
|||
<< ConsoleColorTag(Console_Normal) << " [" << master_endpoint_name << "]: ";
|
||||
|
||||
std::getline(std::cin, answer);
|
||||
boost::algorithm::to_lower(answer);
|
||||
|
||||
if (answer.empty() && !master_endpoint_name.IsEmpty())
|
||||
answer = master_endpoint_name;
|
||||
|
@ -245,7 +240,6 @@ wizard_master_host:
|
|||
<< ConsoleColorTag(Console_Normal) << " [" << tmpPort << "]: ";
|
||||
|
||||
std::getline(std::cin, answer);
|
||||
boost::algorithm::to_lower(answer);
|
||||
|
||||
if (!answer.empty())
|
||||
tmpPort = answer;
|
||||
|
@ -322,7 +316,6 @@ wizard_ticket:
|
|||
<< " (Hint: # icinga2 pki ticket --cn '" << cn << "'): ";
|
||||
|
||||
std::getline(std::cin, answer);
|
||||
boost::algorithm::to_lower(answer);
|
||||
|
||||
if (answer.empty())
|
||||
goto wizard_ticket;
|
||||
|
@ -365,7 +358,6 @@ wizard_ticket:
|
|||
<< ConsoleColorTag(Console_Normal) << " []: ";
|
||||
|
||||
std::getline(std::cin, answer);
|
||||
boost::algorithm::to_lower(answer);
|
||||
|
||||
String bind_host = answer;
|
||||
bind_host = bind_host.Trim();
|
||||
|
@ -373,7 +365,6 @@ wizard_ticket:
|
|||
std::cout << "Bind Port []: ";
|
||||
|
||||
std::getline(std::cin, answer);
|
||||
boost::algorithm::to_lower(answer);
|
||||
|
||||
String bind_port = answer;
|
||||
bind_port = bind_port.Trim();
|
||||
|
@ -477,7 +468,6 @@ wizard_ticket:
|
|||
<< " (CN) [" << Utility::GetFQDN() << "]: ";
|
||||
|
||||
std::getline(std::cin, answer);
|
||||
boost::algorithm::to_lower(answer);
|
||||
|
||||
if (answer.empty())
|
||||
answer = Utility::GetFQDN();
|
||||
|
@ -518,7 +508,6 @@ wizard_ticket:
|
|||
<< "Bind Host" << ConsoleColorTag(Console_Normal) << " []: ";
|
||||
|
||||
std::getline(std::cin, answer);
|
||||
boost::algorithm::to_lower(answer);
|
||||
|
||||
String bind_host = answer;
|
||||
bind_host = bind_host.Trim();
|
||||
|
@ -527,7 +516,6 @@ wizard_ticket:
|
|||
<< "Bind Port" << ConsoleColorTag(Console_Normal) << " []: ";
|
||||
|
||||
std::getline(std::cin, answer);
|
||||
boost::algorithm::to_lower(answer);
|
||||
|
||||
String bind_port = answer;
|
||||
bind_port = bind_port.Trim();
|
||||
|
|
Loading…
Reference in New Issue