mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-22 00:00:40 +01:00
Ensure there are servers whose CPU will be downlevelled before showing the warning.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
parent
c485f8ee5e
commit
003d65087b
@ -520,16 +520,21 @@ namespace XenAdmin.Core
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
string msg3 = string.Format(hostsWithMoreFeatures.Count == 1
|
if (hostsWithMoreFeatures.Count > 0)
|
||||||
? Messages.ADD_HOST_TO_POOL_CPU_DOWN_LEVEL_HOST_MESSAGE
|
|
||||||
: Messages.ADD_HOST_TO_POOL_CPU_DOWN_LEVEL_HOST_MESSAGE_MULTIPLE,
|
|
||||||
string.Join("\n", hostsWithMoreFeatures.Select(h => h.Name())));
|
|
||||||
|
|
||||||
using (var dlg = new WarningDialog(msg3, ThreeButtonDialog.ButtonYes, ThreeButtonDialog.ButtonNo)
|
|
||||||
{HelpNameSetter = "PoolJoinCpuMasking"})
|
|
||||||
{
|
{
|
||||||
return dlg.ShowDialog(Program.MainWindow) == DialogResult.Yes;
|
string msg3 = string.Format(hostsWithMoreFeatures.Count == 1
|
||||||
|
? Messages.ADD_HOST_TO_POOL_CPU_DOWN_LEVEL_HOST_MESSAGE
|
||||||
|
: Messages.ADD_HOST_TO_POOL_CPU_DOWN_LEVEL_HOST_MESSAGE_MULTIPLE,
|
||||||
|
string.Join("\n", hostsWithMoreFeatures.Select(h => h.Name())));
|
||||||
|
|
||||||
|
using (var dlg = new WarningDialog(msg3, ThreeButtonDialog.ButtonYes, ThreeButtonDialog.ButtonNo)
|
||||||
|
{HelpNameSetter = "PoolJoinCpuMasking"})
|
||||||
|
{
|
||||||
|
return dlg.ShowDialog(Program.MainWindow) == DialogResult.Yes;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user