From 70d75d1c691eb96c5faa9a7e0c951cd4af600c7b Mon Sep 17 00:00:00 2001 From: Olivier Lambert Date: Tue, 26 Sep 2017 19:50:25 +0200 Subject: [PATCH] fix(iscsi): fix chapUser/chapPassword case (#606) Fixes vatesfr/xo-web#2339 --- src/api/sr.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/api/sr.js b/src/api/sr.js index 7548e1d0c..343a5cf57 100644 --- a/src/api/sr.js +++ b/src/api/sr.js @@ -442,8 +442,8 @@ export async function createIscsi ({ // if we give user and password if (chapUser && chapPassword) { - deviceConfig.chapUser = chapUser - deviceConfig.chapPassword = chapPassword + deviceConfig.chapuser = chapUser + deviceConfig.chappassword = chapPassword } // if we give another port than default iSCSI @@ -581,8 +581,8 @@ export async function probeIscsiLuns ({ // if we give user and password if (chapUser && chapPassword) { - deviceConfig.chapUser = chapUser - deviceConfig.chapPassword = chapPassword + deviceConfig.chapuser = chapUser + deviceConfig.chappassword = chapPassword } // if we give another port than default iSCSI @@ -660,8 +660,8 @@ export async function probeIscsiExists ({ // if we give user and password if (chapUser && chapPassword) { - deviceConfig.chapUser = chapUser - deviceConfig.chapPassword = chapPassword + deviceConfig.chapuser = chapUser + deviceConfig.chappassword = chapPassword } // if we give another port than default iSCSI