Merge pull request #1623 from GaborApatiNagy/master_CA-255551-2

CA-255551: [SCTX-2553] Automated Updates - Slaves rebooted before Master - XenCenter 7.1.1
This commit is contained in:
Mihaela Stoica 2017-06-05 11:03:26 +01:00 committed by GitHub
commit 44896e945a

View File

@ -303,11 +303,13 @@ namespace XenAdmin.Wizards.PatchingWizard
}
// running delayed actions, but skipping the ones that should be skipped
// iterating through hosts
foreach (var kvp in bgw.DelayedActionsByHost)
// iterating through hosts, master first
var hostsOrdered = bgw.DelayedActionsByHost.Keys.ToList();
hostsOrdered.Sort(); //master first
foreach (var h in hostsOrdered)
{
var h = kvp.Key;
var actions = kvp.Value;
var actions = bgw.DelayedActionsByHost[h];
//run all restart-alike plan actions
foreach (var a in actions.Where(a => a.IsRestartRelatedPlanAction()))