summaryrefslogtreecommitdiffstats
path: root/foreman/ci
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2015-09-11 11:16:19 +0200
committerTim Rozet <trozet@redhat.com>2015-09-11 18:18:10 +0000
commit4cc019754afda26022f440a973513518bada9b85 (patch)
treedb23ce3d8466b44df0db9e29ab2dfa3d3bdc6f7c /foreman/ci
parentdddec765a06dd4cf4260e79c2cca0beaa549aba6 (diff)
Foreman deploy.sh bug corrected when finding the interfaces
Change-Id: Ifb1ab47017ab28fab0a39961c2fd7728d2098cda Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit cf15cf80302559a1647d243187240cfca1efaad2)
Diffstat (limited to 'foreman/ci')
-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