[CA-223486] Only add the check for hosts that it applies to, instead of all selected ones.

This avoids unnecessary checks where we are upgrading multiple pools from different versions. Also made the same change for the unrelated pre-Clearwater only checks which had the same issue.

Signed-off-by: Callum McIntyre <callumiandavid.mcintyre@citrix.com>
This commit is contained in:
Callum McIntyre 2016-10-27 10:18:26 +01:00
parent 0ba1e5c6df
commit 299ed430cc

View File

@ -204,7 +204,8 @@ namespace XenAdmin.Wizards.RollingUpgradeWizard
checkGroup = checks[checks.Count - 1].Value;
foreach (Host host in SelectedServers)
{
checkGroup.Add(new HostHasUnsupportedStorageLinkSRCheck(host));
if(!Helpers.CreedenceOrGreater(host))
checkGroup.Add(new HostHasUnsupportedStorageLinkSRCheck(host));
}
}
@ -219,7 +220,8 @@ namespace XenAdmin.Wizards.RollingUpgradeWizard
checkGroup = checks[checks.Count - 1].Value;
foreach (Host host in SelectedServers)
{
checkGroup.Add(new UpgradingFromTampaAndOlderCheck(host));
if(!Helpers.ClearwaterOrGreater(host))
checkGroup.Add(new UpgradingFromTampaAndOlderCheck(host));
}
}