fix(iscsi): fix chapUser/chapPassword case (#606)

Fixes vatesfr/xo-web#2339
This commit is contained in:
Olivier Lambert 2017-09-26 19:50:25 +02:00 committed by Julien Fontanet
parent 1b76ad4252
commit 70d75d1c69

View File

@ -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