Update nodemgmt-scripts.sh

This commit is contained in:
2024-12-01 18:34:47 -06:00
parent 358f2b4f45
commit bc5f02239e

View File

@@ -771,7 +771,7 @@ BACKUP_UNIFINVR(){
}
RUN_COMMAND(){
while [ $# -gt 0 ]; do
while [ "$#" -gt 0 ]; do
case "${1}" in
-nt|-nodetype) nodetype=${2^^};;
-cmd) RUNCMD="${2}";;
@@ -779,6 +779,7 @@ RUN_COMMAND(){
shift
done
if [ "${nodetype}" == "ALL" ] || [ -n "${nodetype}" ]; then
nodetype=ALL
NT_HOSTS=ALL_HOSTS[@]
NTS=(${NM_NODE_TYPES[*]})
elif [ "${nodetype}" != "" ]; then