Skip to content

Commit 2c3fbfe

Browse files
committed
Windows agent wizard: allow to change the parent zone name
1 parent 8708a1f commit 2c3fbfe

File tree

2 files changed

+36
-6
lines changed

2 files changed

+36
-6
lines changed

agent/windows-setup-agent/SetupWizard.Designer.cs

+29-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

agent/windows-setup-agent/SetupWizard.cs

+7
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ private void ConfigureService()
219219
args += " --trustedcert \"" + _TrustedFile + "\"";
220220
args += " --cn \"" + txtInstanceName.Text.Trim() + "\"";
221221
args += " --zone \"" + txtInstanceName.Text.Trim() + "\"";
222+
args += " --parent_zone \"" + txtParentZone.Text.Trim() + "\"";
222223

223224
foreach (ListViewItem lvi in lvwGlobalZones.Items) {
224225
args += " --global_zones " + lvi.SubItems[0].Text.Trim();
@@ -318,6 +319,12 @@ private void btnNext_Click(object sender, EventArgs e)
318319
return;
319320
}
320321

322+
if (txtParentZone.Text.Length == 0)
323+
{
324+
Warning("Please specify the parent zone.");
325+
return;
326+
}
327+
321328
if (lvwEndpoints.Items.Count == 0) {
322329
Warning("You need to add at least one master/satellite endpoint.");
323330
return;

0 commit comments

Comments
 (0)