Merge pull request #914 from MihaelaStoica/CA-205204

CA-205204: Uncaught exception during RPU
This commit is contained in:
Gabor Apati-Nagy 2016-04-01 10:53:51 +01:00
commit c487c9945d

View File

@ -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