Fix Windows Agent failing with special characters

refs #11327
This commit is contained in:
Jean Flach 2016-03-14 16:37:15 +01:00
parent 4066ab730a
commit 8f875dd51f
1 changed files with 4 additions and 4 deletions

View File

@ -208,10 +208,10 @@ namespace Icinga
if (chkAcceptCommands.Checked)
args += " --accept-commands";
args += " --ticket " + txtTicket.Text;
args += " --trustedcert " + _TrustedFile;
args += " --cn " + txtInstanceName.Text;
args += " --zone " + txtInstanceName.Text;
args += " --ticket \"" + txtTicket.Text + "\"";
args += " --trustedcert \"" + _TrustedFile + "\"";
args += " --cn \"" + txtInstanceName.Text + "\"";
args += " --zone \"" + txtInstanceName.Text + "\"";
if (!RunProcess(Program.Icinga2InstallDir + "\\sbin\\icinga2.exe",
"node setup" + args,