mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 06:16:37 +01:00
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:
parent
6adcd2b83f
commit
ff13eff7dd
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user