Update power.inc.sh

This commit is contained in:
2024-11-16 16:55:39 -06:00
parent 5996641958
commit f3eae86f8b

View File

@@ -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}: "