summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2015-09-11 11:16:19 +0200
committerjose.lausuch <jose.lausuch@ericsson.com>2015-09-11 16:38:15 +0200
commitcf15cf80302559a1647d243187240cfca1efaad2 (patch)
tree589222b6f860360b5cd9adbcd9c75deb0bcd0b41
parent468645126694c1b03328db72a8cde1862d4b09f7 (diff)
Foreman deploy.sh bug corrected when finding the interfaces
Change-Id: Ifb1ab47017ab28fab0a39961c2fd7728d2098cda Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
-rwxr-xr-xforeman/ci/deploy.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/foreman/ci/deploy.sh b/foreman/ci/deploy.sh
index 4c0bf10..3a6f8cd 100755
--- a/foreman/ci/deploy.sh
+++ b/foreman/ci/deploy.sh
@@ -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