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:
Konstantina Chremmou 2022-09-22 11:18:27 +01:00
parent 74487155fa
commit 9f781a5876

View File

@ -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);