mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 06:16:37 +01:00
Merge pull request #1369 from MihaelaStoica/CA-237963
CA-237963: On a partially upgraded pool (from Dundee to Ely) the host…
This commit is contained in:
commit
0f1c4fd690
@ -1137,7 +1137,7 @@ namespace XenAPI
|
||||
if (Connection == null)
|
||||
return null;
|
||||
|
||||
if (Helpers.DundeePlusOrGreater(Connection))
|
||||
if (!Helper.IsNullOrEmptyOpaqueRef(control_domain))
|
||||
return Connection.Resolve(control_domain);
|
||||
|
||||
var vms = Connection.ResolveAll(resident_VMs);
|
||||
@ -1166,7 +1166,7 @@ namespace XenAPI
|
||||
|
||||
var vms = Connection.ResolveAll(resident_VMs);
|
||||
|
||||
if (Helpers.DundeePlusOrGreater(Connection))
|
||||
if (!Helper.IsNullOrEmptyOpaqueRef(control_domain))
|
||||
return vms.Where(v => v.is_control_domain && v.opaque_ref != control_domain);
|
||||
|
||||
return vms.Where(v => v.is_control_domain && v.domid != 0);
|
||||
|
@ -1490,7 +1490,7 @@ namespace XenAPI
|
||||
if (host == null)
|
||||
return false;
|
||||
|
||||
if (Helpers.DundeePlusOrGreater(Connection))
|
||||
if (!Helper.IsNullOrEmptyOpaqueRef(host.control_domain))
|
||||
return host.control_domain == opaque_ref;
|
||||
|
||||
var vms = Connection.ResolveAll(host.resident_VMs);
|
||||
|
Loading…
Reference in New Issue
Block a user