mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 14:27:26 +01:00
Merge pull request #914 from MihaelaStoica/CA-205204
CA-205204: Uncaught exception during RPU
This commit is contained in:
commit
c487c9945d
@ -330,11 +330,18 @@ namespace XenAdmin.Wizards.RollingUpgradeWizard
|
||||
private void ReportException(Exception exception, PlanAction planAction, Host host)
|
||||
{
|
||||
Program.Invoke(this, () =>
|
||||
{
|
||||
if (host != null && !host.enabled && host.Connection != null && host.Connection.Session != null)
|
||||
new EnableHostAction(host, false,
|
||||
AddHostToPoolCommand.EnableNtolDialog).RunExternal(host.Connection.Session);
|
||||
});
|
||||
{
|
||||
if (host != null && !host.enabled && host.Connection != null && host.Connection.Session != null)
|
||||
try
|
||||
{
|
||||
new EnableHostAction(host, false,
|
||||
AddHostToPoolCommand.EnableNtolDialog).RunExternal(host.Connection.Session);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
log.Error("Exception while trying to re-enable the host", e);
|
||||
}
|
||||
});
|
||||
Program.BeginInvoke(this, () =>
|
||||
{
|
||||
var row = planAction is UnwindProblemsAction
|
||||
|
Loading…
Reference in New Issue
Block a user