From a8aa28bc52ce72d9d731ee22ac7c51117bdd728a Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 29 Jan 2019 19:28:28 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index d1bd6dd0..68fa3a43 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -144,11 +144,8 @@ case "$1" in nid=1 for nip in "${NODE_HOSTS[@]}" do - if [[ $(/sbin/ip -o -4 addr list ens192 | awk '{print $4}' | cut -d/ -f1) == *"${nip}"* ]]; then - nip='localhost' - NCMD='' - else - NCMD="ssh root@${nip}" + if [[ $(/sbin/ip -o -4 addr list ens192 | awk '{print $4}' | cut -d/ -f1) == *"${nip}"* ]]; then NCMD='' + else NCMD="ssh root@${nip}" fi for srvc in "${NODE_SERVICES[@]}" do