CA-227034: Slipstream packaged Live patching hotfix is rebooting host

This happened because the LivePatchCodesByHost was null when the prechecks were generated for an update, so the live patch codes returned by the precheck were ignored.

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
This commit is contained in:
Mihaela Stoica 2016-11-08 11:43:54 +00:00
parent 3d9216161f
commit 6b374cb400

View File

@ -289,6 +289,8 @@ namespace XenAdmin.Wizards.PatchingWizard
Pool_patch patch = e.Argument as Pool_patch;
Pool_update update = e.Argument as Pool_update;
LivePatchCodesByHost = new Dictionary<string, livepatch_status>();
List<KeyValuePair<string, List<Check>>> checks = update != null ? GenerateChecks(update) : GenerateChecks(patch); //patch is expected to be null for RPU
_numberChecks = checks.Count;
for (int i = 0; i < checks.Count; i++)
@ -400,9 +402,7 @@ namespace XenAdmin.Wizards.PatchingWizard
List<KeyValuePair<string, List<Check>>> checks = GenerateCommonChecks();
List<Check> checkGroup;
LivePatchCodesByHost = new Dictionary<string, livepatch_status>();
//Checking other things
if (patch != null)
{