Prevent devstack exit on printing warning msg

It looks the function 'warn' might return unsucessfully which
abort the devstack script. Let's use echo instead.

Change-Id: I931f3c649fb3637fd7be667644731329fa12cd07
This commit is contained in:
Hongbin Lu 2017-06-10 14:40:16 +00:00
parent e39a806b9f
commit 1f79d17844
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ function install_docker {
if uname -r | grep -q -- '-generic' && dpkg -l 'linux-image-*-generic' | grep -qE '^ii|^hi' 2>/dev/null; then
apt_get install linux-image-extra-$(uname -r) linux-image-extra-virtual
else
warn $LINENO "Current kernel is not supported by the linux-image-extra-virtual package. Docker may not work."
(>&2 echo "WARNING: Current kernel is not supported by the linux-image-extra-virtual package. Docker may not work.")
fi
apt_get install apt-transport-https ca-certificates software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -