mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 07:19:18 +01:00
CA-293119: Add the pending master reboot precheck to all wizard modes
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
This commit is contained in:
parent
11c3c02a48
commit
e59b5dcb2b
@ -493,14 +493,12 @@ namespace XenAdmin.Wizards.PatchingWizard
|
||||
groups.Add(new CheckGroup(Messages.CHECKING_CANEVACUATE_STATUS, evacuateChecks));
|
||||
}
|
||||
|
||||
if (patch != null || WizardMode == WizardMode.AutomatedUpdates)
|
||||
{
|
||||
var restartChecks = new List<Check>();
|
||||
foreach (var pool in SelectedPools)
|
||||
restartChecks.Add(new RestartHostOrToolstackPendingOnMasterCheck(pool, WizardMode == WizardMode.AutomatedUpdates ? null : patch.uuid));
|
||||
//Checking if a reboot is pending on master
|
||||
var restartChecks = new List<Check>();
|
||||
foreach (var pool in SelectedPools)
|
||||
restartChecks.Add(new RestartHostOrToolstackPendingOnMasterCheck(pool, patch == null ? null : patch.uuid));
|
||||
|
||||
groups.Add(new CheckGroup(Messages.CHECKING_FOR_PENDING_RESTART, restartChecks));
|
||||
}
|
||||
groups.Add(new CheckGroup(Messages.CHECKING_FOR_PENDING_RESTART, restartChecks));
|
||||
|
||||
return groups;
|
||||
}
|
||||
@ -560,15 +558,11 @@ namespace XenAdmin.Wizards.PatchingWizard
|
||||
groups.Add(new CheckGroup(Messages.CHECKING_CANEVACUATE_STATUS, evacuateChecks));
|
||||
}
|
||||
|
||||
if (update != null || WizardMode == WizardMode.AutomatedUpdates)
|
||||
{
|
||||
var restartChecks = new List<Check>();
|
||||
|
||||
foreach (var pool in SelectedPools)
|
||||
restartChecks.Add(new RestartHostOrToolstackPendingOnMasterCheck(pool, WizardMode == WizardMode.AutomatedUpdates ? null : update.uuid));
|
||||
|
||||
groups.Add(new CheckGroup(Messages.CHECKING_FOR_PENDING_RESTART, restartChecks));
|
||||
}
|
||||
//Checking if a reboot is pending on master
|
||||
var restartChecks = new List<Check>();
|
||||
foreach (var pool in SelectedPools)
|
||||
restartChecks.Add(new RestartHostOrToolstackPendingOnMasterCheck(pool, update == null ? null : update.uuid));
|
||||
groups.Add(new CheckGroup(Messages.CHECKING_FOR_PENDING_RESTART, restartChecks));
|
||||
|
||||
return groups;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user