Browse Source

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
Hongbin Lu 1 year ago
parent
commit
1f79d17844
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      devstack/lib/docker

+ 1
- 1
devstack/lib/docker View File

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

Loading…
Cancel
Save