From 9f781a5876e40dac5eaff5935e00e02ca2d9f5ab Mon Sep 17 00:00:00 2001 From: Konstantina Chremmou Date: Thu, 22 Sep 2022 11:18:27 +0100 Subject: [PATCH] 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. --- .../BugToolWizardFiles/BugToolPageSelectCapabilities.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/XenAdmin/Wizards/BugToolWizardFiles/BugToolPageSelectCapabilities.cs b/XenAdmin/Wizards/BugToolWizardFiles/BugToolPageSelectCapabilities.cs index c5206d640..eab7f809d 100644 --- a/XenAdmin/Wizards/BugToolWizardFiles/BugToolPageSelectCapabilities.cs +++ b/XenAdmin/Wizards/BugToolWizardFiles/BugToolPageSelectCapabilities.cs @@ -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);