From ff566133bd6d8f53a99d94476d8a9f798e885911 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 6 Dec 2024 21:06:04 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 699bd8e6..1645c433 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -780,7 +780,7 @@ RUN_COMMAND(){ done if [ "${nodetype}" == "ALL" ] || [ -z ${nodetype+x} ]; then nodetype=ALL - # NT_HOSTS=ALL_HOSTS[@] + NT_HOSTS=ALL_HOSTS[@] NTS=(${NM_NODE_TYPES[*]}) elif [ "${nodetype}" != "" ]; then if [ "${NM_HOSTS[${nodetype}]}" != "" ]; then @@ -799,7 +799,7 @@ RUN_COMMAND(){ echo -e "${idsST[Bold]}"; DIVIDER echo -e "${idsCL[Yellow]} ${NM_NODETYPES[$NTYPE]}-Nodes to run command { \`${RUNCMD}\` }${idsCL[Default]}" DIVIDER; echo -e "${idsST[Reset]}" - + NT_HOSTS=${NTYPE}_HOSTS[@] for nip in "${!NT_HOSTS}"; do if [[ ${RUN_NODE_IP} == *"${nip}"* ]]; then NCMD=''; LH='- localhost' else NCMD="ssh -q -o ConnectTimeout=3 -o ConnectionAttempts=1 root@${nip}"; LH=''