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=''