diff --git a/inc/power.inc.sh b/inc/power.inc.sh index df619378..a754a3e6 100644 --- a/inc/power.inc.sh +++ b/inc/power.inc.sh @@ -1241,7 +1241,7 @@ HOSTPOWER(){ if [ "${idracip}" != "" ]; then if [ "${2^^}" = "ON" ] || [ "${2^^}" = "OFF" ] || [ "${2^^}" = "STATUS" ]; then - if [ "${idracip}" = "${PW_HOST_IDRACS[${PW_ESXI_HOST_NAMES[${PW_ISCSI-PRI_HOST}]}" ] && [ "${2^^}" = "ON" ]; then + if [ "${idracip}" = "]}]}" ] && [ "${2^^}" = "ON" ]; then MSG="Powering ON the SAS Enclosure" c=0; MSG_SPC=''; spc1=`expr ${HC_CW} - ${#MSG}`; until [ ${c} = ${spc1} ]; do MSG_SPC="${MSG_SPC} "; ((c++)); done echo -en "\n${idsCL[LightCyan]}${MSG}${MSG_SPC}: "