CA-227277: XenCenter does not recognise the xscontainer supplemental pack in the new format

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
This commit is contained in:
Mihaela Stoica 2016-10-28 12:06:44 +01:00
parent 1e31543bbf
commit 757bca9676

View File

@ -2073,7 +2073,11 @@ namespace XenAdmin.Core
public static bool ContainerCapability(IXenConnection connection)
{
var master = GetMaster(connection);
return CreamOrGreater(connection) && master != null && master.SuppPacks.Any(suppPack => suppPack.Name.ToLower().StartsWith("xscontainer"));
if (master == null)
return false;
if (ElyOrGreater(connection))
return master.AppliedUpdates().Any(update => update.Name.ToLower().StartsWith("xscontainer"));
return CreamOrGreater(connection) && master.SuppPacks.Any(suppPack => suppPack.Name.ToLower().StartsWith("xscontainer"));
}
public static bool PvsCacheCapability(IXenConnection connection)