mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-24 22:06:59 +01:00
CA-370847: Unable to collect status report for multiple servers
Linq.Intersect was failing to combine server capabilities because the helper class did not implement GetHashCode.
This commit is contained in:
parent
74487155fa
commit
9f781a5876
@ -564,6 +564,11 @@ namespace XenAdmin.Wizards.BugToolWizardFiles
|
||||
return _name;
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return Key == null ? 0 : Key.GetHashCode();
|
||||
}
|
||||
|
||||
public int CompareTo(Capability other)
|
||||
{
|
||||
return StringUtility.NaturalCompare(Key, other?.Key);
|
||||
|
Loading…
Reference in New Issue
Block a user