Foreman deploy.sh bug corrected when finding the interfaces 19/1519/1
authorjose.lausuch <jose.lausuch@ericsson.com>
Fri, 11 Sep 2015 09:16:19 +0000 (11:16 +0200)
committerTim Rozet <trozet@redhat.com>
Fri, 11 Sep 2015 18:18:10 +0000 (18:18 +0000)
Change-Id: Ifb1ab47017ab28fab0a39961c2fd7728d2098cda
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit cf15cf80302559a1647d243187240cfca1efaad2)

foreman/ci/deploy.sh

index 4c0bf10..3a6f8cd 100755 (executable)
@@ -511,7 +511,8 @@ 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 " " -f10`
+    #output=`/bin/ls -l /sys/class/net | tail -n +2 | grep -v virtual | cut -d " " -f10`
+    output=`/bin/ls -l /sys/class/net | tail -n +2 | grep -v virtual | awk {'print $9'}`
   fi
 
   if [ ! "$output" ]; then