Fixed broken build.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
Konstantina Chremmou 2020-03-10 14:19:44 +00:00
parent fb7f5ef2d0
commit 452edbc496

View File

@ -216,6 +216,7 @@ namespace XenAdmin.Wizards.NewSRWizard_Pages.Frontends
private bool RunProbe(Host master, FibreChannelDescriptor srDescriptor, out List<SR.SRInfo> srs)
{
srs = new List<SR.SRInfo>();
var action = new SrProbeAction(Connection, master, srDescriptor.SrType, srDescriptor.DeviceConfig);
using (var dlg = new ActionProgressDialog(action, ProgressBarStyle.Marquee))
@ -234,8 +235,6 @@ namespace XenAdmin.Wizards.NewSRWizard_Pages.Frontends
}
}
srs = new List<SR.SRInfo>();
//CA-335356 special treatment of case where gfs2 cannot see the same devices as lvmohba
if (srDescriptor.SrType == SR.SRTypes.gfs2 && action.Exception is Failure f && f.ErrorDescription.Count > 1 &&
f.ErrorDescription[0].StartsWith("SR_BACKEND_FAILURE") && f.ErrorDescription[1] == "DeviceNotFoundException")