From: Tim Rozet Date: Thu, 3 Sep 2015 19:44:30 +0000 (-0400) Subject: Fixes bug in looking for interfaces X-Git-Tag: arno.2015.2.0~52^2^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?p=genesis.git;a=commitdiff_plain;h=591a1c4327c0793b4a15443f9e72b79ffbeaa226 Fixes bug in looking for interfaces Issue where the wrong field was being used for finding interfaces. JIRA: APEX-11 Change-Id: I94635837c73acd0d271dbc9d0474dc5ba688ff10 Signed-off-by: Tim Rozet --- diff --git a/foreman/ci/deploy.sh b/foreman/ci/deploy.sh index dcead8b..6771da0 100755 --- a/foreman/ci/deploy.sh +++ b/foreman/ci/deploy.sh @@ -509,7 +509,7 @@ configure_network() { echo "${blue}Detecting network configuration...${reset}" ##detect host 1 or 3 interface configuration #output=`ip link show | grep -E "^[0-9]" | grep -Ev ": lo|tun|virbr|vboxnet" | awk '{print $2}' | sed 's/://'` - output=`/bin/ls -l /sys/class/net | tail -n +2 | grep -v virtual | cut -d " " -f9` + output=`/bin/ls -l /sys/class/net | tail -n +2 | grep -v virtual | cut -d " " -f10` fi if [ ! "$output" ]; then