mirror of https://github.com/Icinga/icinga2.git
parent
f3cc265135
commit
4579e8f7f5
|
@ -54,8 +54,8 @@ namespace Icinga
|
||||||
{
|
{
|
||||||
foreach (ListViewItem lvi in lvwEndpoints.Items) {
|
foreach (ListViewItem lvi in lvwEndpoints.Items) {
|
||||||
if (lvi.SubItems.Count > 1) {
|
if (lvi.SubItems.Count > 1) {
|
||||||
host = lvi.SubItems[1].Text;
|
host = lvi.SubItems[1].Text.Trim();
|
||||||
port = lvi.SubItems[2].Text;
|
port = lvi.SubItems[2].Text.Trim();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -194,8 +194,8 @@ namespace Icinga
|
||||||
string master_host, master_port;
|
string master_host, master_port;
|
||||||
GetMasterHostPort(out master_host, out master_port);
|
GetMasterHostPort(out master_host, out master_port);
|
||||||
|
|
||||||
args += " --master_host " + master_host.Trim()
|
args += " --master_host " + master_host
|
||||||
+ "," + master_port.Trim();
|
+ "," + master_port;
|
||||||
|
|
||||||
foreach (ListViewItem lvi in lvwEndpoints.Items) {
|
foreach (ListViewItem lvi in lvwEndpoints.Items) {
|
||||||
args += " --endpoint " + lvi.SubItems[0].Text.Trim();
|
args += " --endpoint " + lvi.SubItems[0].Text.Trim();
|
||||||
|
|
Loading…
Reference in New Issue