Merge "Fix run-os-net-config.sh to use ping6 for IPv6 hostnames" into stable/queens

This commit is contained in:
Zuul 2019-05-28 02:22:03 +00:00 committed by Gerrit Code Review
commit a3e4996271

View File

@ -43,8 +43,9 @@ function ping_metadata_ip() {
echo -n "Trying to ping metadata IP ${METADATA_IP}..."
_IP="$(getent hosts $METADATA_IP | awk '{ print $1 }')"
_ping=ping
if [[ "$METADATA_IP" =~ ":" ]] ; then
if [[ "$_IP" =~ ":" ]] ; then
_ping=ping6
fi