proper logic for target iqn
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
This commit is contained in:
parent
cf6352969b
commit
0d9f89e415
|
|
@ -156,7 +156,7 @@ class ISCSI {
|
||||||
let session = false;
|
let session = false;
|
||||||
sessions.every((i_session) => {
|
sessions.every((i_session) => {
|
||||||
if (
|
if (
|
||||||
`${i_session.iqn}:${i_session.target}` == tgtIQN &&
|
`${i_session.iqn}` == tgtIQN &&
|
||||||
portal == i_session.portal
|
portal == i_session.portal
|
||||||
) {
|
) {
|
||||||
session = i_session;
|
session = i_session;
|
||||||
|
|
@ -202,8 +202,9 @@ class ISCSI {
|
||||||
id: Number(fields[1].replace("[", "").replace("]", "")),
|
id: Number(fields[1].replace("[", "").replace("]", "")),
|
||||||
portal: fields[2].replace("[", "").replace("]", "").split(",")[0],
|
portal: fields[2].replace("[", "").replace("]", "").split(",")[0],
|
||||||
target_portal_group_tag: fields[2].split(",")[1],
|
target_portal_group_tag: fields[2].split(",")[1],
|
||||||
iqn: fields[3].split(":")[0],
|
iqn: fields[3].trim(),
|
||||||
target: fields[3].split(":")[1],
|
//iqn: fields[3].split(":")[0],
|
||||||
|
//target: fields[3].split(":")[1],
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue