mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 06:16:37 +01:00
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:
commit
44896e945a
@ -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()))
|
||||
|
Loading…
Reference in New Issue
Block a user