mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 14:27:26 +01:00
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:
parent
1b2ff28fb1
commit
3df22f4735
@ -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);
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user