Fixes bug in looking for interfaces 87/1387/1
authorTim Rozet <trozet@redhat.com>
Thu, 3 Sep 2015 19:44:30 +0000 (15:44 -0400)
committerTim Rozet <trozet@redhat.com>
Thu, 3 Sep 2015 19:44:30 +0000 (15:44 -0400)
Issue where the wrong field was being used for finding interfaces.

JIRA: APEX-11

Change-Id: I94635837c73acd0d271dbc9d0474dc5ba688ff10
Signed-off-by: Tim Rozet <trozet@redhat.com>
foreman/ci/deploy.sh

index dcead8b..6771da0 100755 (executable)
@@ -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