mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 07:19:18 +01:00
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:
commit
2567c2fb4a
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user