From 2a287771f7df607a1a21489b1087d95e74f0b98a Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 21 Mar 2020 21:50:51 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 1fe408fa..731439ec 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1285,7 +1285,8 @@ SERVICE(){ var=${NTYPE}_HOSTS[@] echo "$NTYPE" for nip in "${!var}"; do - echo -en "$nip = " + IP=$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) + echo -en "($IP) $nip = " if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) == *"${nip}"* ]]; then NODE_TYPE=${NTYPE}; echo "yes"