tests: use the first IP address if more than 1 retruned from OpenStack
This commit is contained in:
parent
6563a33f63
commit
883a959442
@ -102,7 +102,7 @@ __EOF__
|
|||||||
rlAssert0 "VM started successfully" $?
|
rlAssert0 "VM started successfully" $?
|
||||||
rlLogInfo "$response"
|
rlLogInfo "$response"
|
||||||
|
|
||||||
IP_ADDRESS=`echo "$response" | grep '"OS-EXT-IPS:type": "floating"' -A1 | grep '"addr":' | cut -f4 -d'"'`
|
IP_ADDRESS=`echo "$response" | grep '"OS-EXT-IPS:type": "floating"' -A1| grep '"addr":' | cut -f4 -d'"' | head -n 1`
|
||||||
rlLogInfo "Running instance IP_ADDRESS=$IP_ADDRESS"
|
rlLogInfo "Running instance IP_ADDRESS=$IP_ADDRESS"
|
||||||
|
|
||||||
rlLogInfo "Waiting 60sec for instance to initialize ..."
|
rlLogInfo "Waiting 60sec for instance to initialize ..."
|
||||||
|
Loading…
Reference in New Issue
Block a user