From 8b74fc91a91becfab48953e68a22ccca46c8813e Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 30 Nov 2015 08:25:37 +0100 Subject: [PATCH] Remove the local zone name question in node wizard fixes #10724 --- lib/cli/nodewizardcommand.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/lib/cli/nodewizardcommand.cpp b/lib/cli/nodewizardcommand.cpp index bbf4fd2b6..ba5dd03c1 100644 --- a/lib/cli/nodewizardcommand.cpp +++ b/lib/cli/nodewizardcommand.cpp @@ -135,19 +135,6 @@ int NodeWizardCommand::Run(const boost::program_options::variables_map& vm, String cn = answer; cn = cn.Trim(); - std::cout << ConsoleColorTag(Console_Bold) - << "Please specifiy the local zone name" - << ConsoleColorTag(Console_Normal) << " [" << cn << "]: "; - - std::getline(std::cin, answer); - boost::algorithm::to_lower(answer); - - if (answer.empty()) - answer = cn; - - String local_zone = answer; - local_zone = local_zone.Trim(); - std::vector endpoints; String endpoint_buffer; @@ -481,7 +468,7 @@ wizard_ticket: NodeUtility::CreateBackupFile(constants_file); NodeUtility::UpdateConstant("NodeName", cn); - NodeUtility::UpdateConstant("ZoneName", local_zone); + NodeUtility::UpdateConstant("ZoneName", cn); } else { /* master setup */ std::cout << ConsoleColorTag(Console_Bold) << "Starting the Master setup routine...\n";