CP-14085: Added Assert for CPU feature masking

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
This commit is contained in:
Mihaela Stoica 2015-10-28 14:02:29 +00:00
parent 0a6955d157
commit fe9f4cf555

View File

@ -88,7 +88,10 @@ namespace XenAdmin.Actions
{
// No CPU masking is needed for Dundee or greater hosts
if (Helpers.DundeeOrGreater(host))
{
System.Diagnostics.Trace.Assert(false, "No CPU masking should be done for Dundee or greater hosts");
continue;
}
Host.set_cpu_features(host.Connection.Session, host.opaque_ref, poolMaster.cpu_info["features"]);
RebootHostAction action = new RebootHostAction(host, acceptNTolChanges);