From ee51ace1fbc45c8779025649dd436cd83519f552 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 14 Oct 2022 23:08:11 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index c21cba34..851ee173 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1421,14 +1421,8 @@ SERVICE(){ if [ "${3}" != "q" ]; then IP=$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) for NTYPE in "${NODE_TYPES[@]}"; do - var=${NTYPE}_HOSTS[@] - for nip in "${!var}"; do - if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) == *"${nip}"* ]]; then - NODE_TYPE=${NTYPE}; - echo "NODE_TYPE found: ${NTYPE}" - break 2 - fi - done + echo "Node type: ${NODE_TYPE}" + done echo "Node type: ${NODE_TYPE}" if [ "$NODE_TYPE" = "NC" ]; then