summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2018-11-20 03:59:17 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-11-20 03:59:17 +0000
commit1fc27d26a7e2dab1fdd0718d2d8a3c751a6cb701 (patch)
treee9e3f7e2c44a6255a2fcd29839ee3a4a7ce959f8
parent9066cb52523aeb4a5b98c634aa6616233b0c0237 (diff)
parent859fb4703b3f0359e80b35aaa62a94e752707bae (diff)
Merge "Make util support more than 10 compute nodes"
-rwxr-xr-xci/util.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ci/util.sh b/ci/util.sh
index a9df0213..5172ae1b 100755
--- a/ci/util.sh
+++ b/ci/util.sh
@@ -48,7 +48,7 @@ controller<number> or compute<number>"
node_output=$(undercloud_connect "stack" "source stackrc; nova list")
node=$(echo "$1" | sed -E 's/([a-zA-Z]+)([0-9]+)/\1-\2/')
- node_ip=$(echo "$node_output" | grep "$node" | grep -Eo "[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+")
+ node_ip=$(echo "$node_output" | grep "$node " | grep -Eo "[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+")
if [ "$node_ip" == "" ]; then
echo -e "Unable to find IP for ${node} in \n${node_output}"