This commit is contained in:
2024-11-20 22:22:03 -06:00
parent a1000f6604
commit ba01011bb8
2 changed files with 3 additions and 1 deletions

View File

@@ -65,6 +65,9 @@ unset IFS
[ "${PW_ISCSI-PRI_HOST}" = "" ] && PW_ISCSI-PRI_HOST=10.10.2.10
[ "${PW_ISCSI-SYS_HOST}" = "" ] && PW_ISCSI-SYS_HOST=10.10.2.16
echo ${PW_ISCSI-PRI_HOST}
if [ -f ${PW_FOLDER}/conf/settings.local.conf ]; then
declare -A PW_POWERWALL_SERVICES
declare -A PW_THRESHOLDS

View File

@@ -1274,7 +1274,6 @@ HOSTPOWER(){
echo -e "${idsCL[Default]}"
echo "HERE: [ ${idracip} = ${PW_HOST_IDRACS[${PW_ESXI_HOST_NAMES[${PW_ISCSI-PRI_HOST}]}]} ]"
echo ${PW_ISCSI-PRI_HOST}
if [ "${idracip}" = "${PW_HOST_IDRACS[${PW_ESXI_HOST_NAMES[${PW_ISCSI-PRI_HOST}]}]}" ] && [ "${2^^}" = "OFF" ]; then
MSG="Powering OFF the SAS Enclosure"
c=0; MSG_SPC=''; spc1=`expr ${HC_CW} - ${#MSG}`; until [ ${c} = ${spc1} ]; do MSG_SPC="${MSG_SPC} "; ((c++)); done