fix(iscsi): fix chapUser/chapPassword case (#606)
Fixes vatesfr/xo-web#2339
This commit is contained in:
parent
1b76ad4252
commit
70d75d1c69
@ -442,8 +442,8 @@ export async function createIscsi ({
|
|||||||
|
|
||||||
// if we give user and password
|
// if we give user and password
|
||||||
if (chapUser && chapPassword) {
|
if (chapUser && chapPassword) {
|
||||||
deviceConfig.chapUser = chapUser
|
deviceConfig.chapuser = chapUser
|
||||||
deviceConfig.chapPassword = chapPassword
|
deviceConfig.chappassword = chapPassword
|
||||||
}
|
}
|
||||||
|
|
||||||
// if we give another port than default iSCSI
|
// if we give another port than default iSCSI
|
||||||
@ -581,8 +581,8 @@ export async function probeIscsiLuns ({
|
|||||||
|
|
||||||
// if we give user and password
|
// if we give user and password
|
||||||
if (chapUser && chapPassword) {
|
if (chapUser && chapPassword) {
|
||||||
deviceConfig.chapUser = chapUser
|
deviceConfig.chapuser = chapUser
|
||||||
deviceConfig.chapPassword = chapPassword
|
deviceConfig.chappassword = chapPassword
|
||||||
}
|
}
|
||||||
|
|
||||||
// if we give another port than default iSCSI
|
// if we give another port than default iSCSI
|
||||||
@ -660,8 +660,8 @@ export async function probeIscsiExists ({
|
|||||||
|
|
||||||
// if we give user and password
|
// if we give user and password
|
||||||
if (chapUser && chapPassword) {
|
if (chapUser && chapPassword) {
|
||||||
deviceConfig.chapUser = chapUser
|
deviceConfig.chapuser = chapUser
|
||||||
deviceConfig.chapPassword = chapPassword
|
deviceConfig.chappassword = chapPassword
|
||||||
}
|
}
|
||||||
|
|
||||||
// if we give another port than default iSCSI
|
// if we give another port than default iSCSI
|
||||||
|
Loading…
Reference in New Issue
Block a user