Update powerwall.sh

This commit is contained in:
2023-10-31 22:06:53 -05:00
parent 0605b33477
commit f14e38c33d

View File

@@ -1144,15 +1144,15 @@ HOSTPOWER(){
echo -e "\n${idsCL[Yellow]}Host Power Control"
DIVIDER . yellow 75
var="iDS-vMS-Host${1}"
var=iDS-vMS-Host${1}
if [ "${PW_iDRACHOST_SHORTNAMES[${1}]}" != "" ]; then
idracip=${1}
elif [ "${PW_ESXI_HOST_NAMES[${1}]}" != "" ]; then
tmp=${PW_ESXI_HOST_NAMES[${1}]}
idracip=${PW_HOST_IDRACS[${tmp}]}
elif [ "${PW_HOST_IDRACS[${!var}]}" != "" ]; then
idracip=${PW_HOST_IDRACS[${!var}]}
elif [ "${PW_HOST_IDRACS[${var}]}" != "" ]; then
idracip=${PW_HOST_IDRACS[${var}]}
elif [ "${PW_HOST_IDRACS[${1}]}" != "" ]; then
idracip=${PW_HOST_IDRACS[${1}]}
else