]> granicus.if.org Git - icinga2/commitdiff
Fix Port wrong default port in Node Wizard
authorJean Flach <jean-marcel.flach@netways.de>
Thu, 30 Apr 2015 10:52:35 +0000 (12:52 +0200)
committerJean Flach <jean-marcel.flach@netways.de>
Thu, 30 Apr 2015 10:52:35 +0000 (12:52 +0200)
fixes #9205

lib/cli/nodewizardcommand.cpp

index 3d5e600350aed02dad309774b78cd6acdcec8b31..5d0566db4ef7c486c0e77ca103cc081c5b0cf4eb 100644 (file)
@@ -170,7 +170,7 @@ wizard_endpoint_loop_start:
                        Log(LogWarning, "cli", "Node to master connection setup skipped");
                        std::cout << "Connection setup skipped. Please configure your master to connect to this node.\n";
                } else  {
-                       std::cout << ConsoleColorTag(Console_Bold) << "Please fill out the master connection information:" << ConsoleColorTag(Console_Normal) << "\n";
+                       std::cout << ConsoleColorTag(Console_Bold) << "Please fill out the master connection information:" << ConsoleColorTag(Console_Normal) << "\n";
                        std::cout << ConsoleColorTag(Console_Bold) << "Master endpoint host" << ConsoleColorTag(Console_Normal) << " (Your master's IP address or FQDN): ";
 
                        std::getline(std::cin, answer);
@@ -197,7 +197,7 @@ wizard_endpoint_loop_start:
                                tmp = "5665";
 
                        tmp.Trim();
-                       endpoint_buffer += "," + answer;
+                       endpoint_buffer += "," + tmp;
                }
 
                endpoints.push_back(endpoint_buffer);