SetupWizard: Move Trim to GetMasterHostPort()

refs #5705
This commit is contained in:
Noah Hilverling 2017-11-09 09:28:05 +01:00
parent f3cc265135
commit 4579e8f7f5
1 changed files with 4 additions and 4 deletions

View File

@ -54,8 +54,8 @@ namespace Icinga
{
foreach (ListViewItem lvi in lvwEndpoints.Items) {
if (lvi.SubItems.Count > 1) {
host = lvi.SubItems[1].Text;
port = lvi.SubItems[2].Text;
host = lvi.SubItems[1].Text.Trim();
port = lvi.SubItems[2].Text.Trim();
return true;
}
}
@ -194,8 +194,8 @@ namespace Icinga
string master_host, master_port;
GetMasterHostPort(out master_host, out master_port);
args += " --master_host " + master_host.Trim()
+ "," + master_port.Trim();
args += " --master_host " + master_host
+ "," + master_port;
foreach (ListViewItem lvi in lvwEndpoints.Items) {
args += " --endpoint " + lvi.SubItems[0].Text.Trim();