CA-189674: Move VM shows an irrelevant (VIF mapping) error, but it shouldn't

Fixed filters that are used to determine whether a vm can be migrated to a destination or not.

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
This commit is contained in:
Gabor Apati-Nagy 2015-12-01 21:31:48 +00:00
parent 1b2ff28fb1
commit 3df22f4735
2 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ namespace XenAdmin.Wizards.CrossPoolMigrateWizard.Filters
{
//Skip the resident host as there's a filter for it and
//if not then you could exclude intrapool migration
if(vm.resident_on == host.opaque_ref)
if (vm.Connection == host.Connection)
continue;
PIF managementPif = host.Connection.Cache.PIFs.First(p => p.management);

View File

@ -54,7 +54,7 @@ namespace XenAdmin.Wizards.CrossPoolMigrateWizard.Filters
get
{
List<Host> residentHosts = new List<Host>();
preSelectedVMs.ForEach(vm=>residentHosts.Add( vm.Connection.Resolve(vm.resident_on)));
preSelectedVMs.ForEach(vm=>residentHosts.Add(vm.Home()));
if(ItemToFilterOn is Host)
{