Merge pull request #1250 from MihaelaStoica/CA-227166

CA-227166, CA-227277: Switch from SuppPacks to Updates for pvsproxy and container supp packs
This commit is contained in:
mcintyre94 2016-10-28 13:15:34 +01:00 committed by GitHub
commit 2567c2fb4a

View File

@ -2084,13 +2084,17 @@ 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)
{
var master = GetMaster(connection);
return master != null && master.SuppPacks.Any(suppPack => suppPack.Name.ToLower().StartsWith("xspvscache"));
return master != null && master.AppliedUpdates().Any(update => update.Name.ToLower().StartsWith("xspvscache"));
}
/// <summary>