mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 14:27:26 +01:00
Merge pull request #1148 from MihaelaStoica/CA-220049
CA-220049: Non-livepatch hotfix installation is failing
This commit is contained in:
commit
6065465a52
@ -66,13 +66,14 @@ namespace XenAdmin.Wizards.PatchingWizard.PlanActions
|
|||||||
|
|
||||||
if (hostObject.patches_requiring_reboot.Count > 0)
|
if (hostObject.patches_requiring_reboot.Count > 0)
|
||||||
{
|
{
|
||||||
|
if (AvoidRestartHosts != null)
|
||||||
AvoidRestartHosts.Remove(hostObject.uuid);
|
AvoidRestartHosts.Remove(hostObject.uuid);
|
||||||
|
|
||||||
log.DebugFormat("Restart is needed now (hostObject.patches_requiring_reboot has {0} items in it). Evacuating now. Will restart after.", hostObject.patches_requiring_reboot.Count);
|
log.DebugFormat("Restart is needed now (hostObject.patches_requiring_reboot has {0} items in it). Evacuating now. Will restart after.", hostObject.patches_requiring_reboot.Count);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (!AvoidRestartHosts.Contains(hostObject.uuid))
|
if (AvoidRestartHosts != null && !AvoidRestartHosts.Contains(hostObject.uuid))
|
||||||
{
|
{
|
||||||
AvoidRestartHosts.Add(hostObject.uuid);
|
AvoidRestartHosts.Add(hostObject.uuid);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user