diff --git a/xCAT-UI/js/custom/hmc.js b/xCAT-UI/js/custom/hmc.js index 044810dd8..589c397de 100644 --- a/xCAT-UI/js/custom/hmc.js +++ b/xCAT-UI/js/custom/hmc.js @@ -821,6 +821,13 @@ function powerInitSiteTable(operType) { * Step 4: When the values are ready, create the table */ function showSiteArea() { + var adminpasswd = getDiscoverEnv('adminpasswd'); + adminpasswd = adminpasswd ? adminpasswd : "admin"; + var generalpasswd = getDiscoverEnv('generalpasswd'); + generalpasswd = generalpasswd? generalpasswd : "general"; + var hmcpasswd = getDiscoverEnv('hmcpasswd'); + hmcpasswd = hmcpasswd ? hmcpasswd : "abc123"; + var showString = ''; showString += ''; + showString += ''; + showString += ''; + showString += ''; showString += '
Domain Name:-
admin password for FRAME and CEC:
general password for FRAME and CEC:
hmc password for FRAME and CEC:
'; $('#discoverContentDiv div').eq(0).append(showString); @@ -907,6 +923,18 @@ function checkSiteTable(operType) { if (!getDiscoverEnv('ipEnd')) { errMessage += 'Input the DHCP Dynamic Range.
'; } + + if (!getDiscoverEnv('adminpasswd')) { + errMessage += 'Input the admin\'s password for FRAME and CEC.
'; + } + + if (!getDiscoverEnv('generalpasswd')) { + errMessage += 'Input the general\'s password for FRAME and CEC.
'; + } + + if (!getDiscoverEnv('hmcpasswd')) { + errMessage += 'Input the hmc\'s password for FRAME and CEC.
'; + } if ('' == errMessage) { $.ajax({