CA-212078: Do not check for CPU compatibility feature when the VM's resident host is not dundee or greater.

This commit is contained in:
Konstantina Chremmou 2016-06-07 09:30:37 +01:00
parent 41f749e941
commit 5b19081d61

View File

@ -185,8 +185,8 @@ namespace XenAdmin.Commands
public static bool VmCpuFeaturesIncompatibleWithHost(Host targetHost, VM vm)
{
// check the CPU feature compatibility for Dundee and higher hosts
if (!Helpers.DundeeOrGreater(targetHost) || !Helpers.DundeeOrGreater(vm.Connection))
// check the CPU feature compatibility for Dundee and higher hosts
if (!Helpers.DundeeOrGreater(targetHost) || !Helpers.DundeeOrGreater(vm.Connection.Resolve(vm.resident_on)))
return false;
// only for running or suspended VMs