Some information (ScsiId) is contained in the Probe_result.configuration, the Probe_result.extra_info does not contain everything we need.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
Konstantina Chremmou 2018-04-03 10:18:08 +01:00
parent 6adcd2b83f
commit ff13eff7dd

View File

@ -75,7 +75,15 @@ namespace XenAdmin.Actions
var deviceConfig = new Dictionary<string, string>();
deviceConfig["provider"] = "hba";
var result = SR.probe_ext(Session, Host.opaque_ref, deviceConfig, srType.ToString(), new Dictionary<string, string>());
FibreChannelDevices = (from Probe_result r in result select new FibreChannelDevice(r.extra_info)).ToList();
var list = new List<FibreChannelDevice>();
foreach (var r in result)
{
var dict = new Dictionary<string, string>(r.configuration);
r.extra_info.ToList().ForEach(kvp => dict.Add(kvp.Key, kvp.Value));
list.Add(new FibreChannelDevice(dict));
}
FibreChannelDevices = list;
}
Description = Messages.PROBED_HBA;
}