summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--jjb/functest/functest.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/jjb/functest/functest.yml b/jjb/functest/functest.yml
index 0edcbabb9..9e5e71b16 100644
--- a/jjb/functest/functest.yml
+++ b/jjb/functest/functest.yml
@@ -450,8 +450,8 @@
#!/bin/bash
set +e
if [[ ${INSTALLER_TYPE} == 'apex' ]]; then
- INSTALLER_IP=$(cat instack /var/lib/libvirt/dnsmasq/default.leases \
- |sed 's/.*192/192/g' | sed 's/\ in.*//g')
+ INSTALLER_IP=$(grep instack /var/lib/libvirt/dnsmasq/default.leases \
+ |awk '{print $3}' | head -n 1)
sshkey="-v /root/.ssh/id_rsa:/root/.ssh/id_rsa"
fi
echo "Functest: Start Docker and prepare environment"