From 16fd1a23405d5e4fd3c0fedf6db4e1d91eb5ae13 Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Tue, 4 Jun 2019 12:05:11 +0300 Subject: [PATCH] [tests] grep|cut for IP address in a more robust way because sometimes these VMs may get an IPv6 address assigned and we don't want to cut only the first part of it --- tests/cli/test_build_and_deploy_vmware.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cli/test_build_and_deploy_vmware.sh b/tests/cli/test_build_and_deploy_vmware.sh index 40ffeada..e5134f07 100755 --- a/tests/cli/test_build_and_deploy_vmware.sh +++ b/tests/cli/test_build_and_deploy_vmware.sh @@ -136,7 +136,7 @@ __EOF__ rlLogInfo "IP_ADDRESS is not assigned yet ..." sleep 30 IP_ADDRESS=`python3 $SAMPLES/find_by_uuid.py -S -s $V_HOST -u $V_USERNAME -p $V_PASSWORD \ - --uuid $INSTANCE_UUID | grep 'ip address' | tr -d ' ' | cut -f2 -d:` + --uuid $INSTANCE_UUID | grep 'ip address' | tr -d ' ' | cut -f2- -d:` done rlLogInfo "Running instance IP_ADDRESS=$IP_ADDRESS"