Cli: Fix choices in agent setup wizard

refs #7465
This commit is contained in:
Michael Friedrich 2014-10-30 18:21:15 +01:00
parent b863c7fde0
commit fb2bc5efbf
1 changed files with 6 additions and 4 deletions

View File

@ -94,9 +94,10 @@ int AgentWizardCommand::Run(const boost::program_options::variables_map& vm, con
boost::algorithm::to_lower(answer); boost::algorithm::to_lower(answer);
if (Utility::Match("^n*", answer)) String choice = answer;
is_agent_setup = false;
if (choice.Contains("n"))
is_agent_setup = false;
if (is_agent_setup) { if (is_agent_setup) {
/* agent setup part */ /* agent setup part */
@ -168,9 +169,10 @@ wizard_endpoint_loop_start:
boost::algorithm::to_lower(answer); boost::algorithm::to_lower(answer);
if (Utility::Match("^y*", answer)) String choice = answer;
goto wizard_endpoint_loop_start;
if (choice.Contains("y") || choice.Contains("j"))
goto wizard_endpoint_loop_start;
std::cout << "Please specify the master connection for auto-signing:\n"; std::cout << "Please specify the master connection for auto-signing:\n";