Browse code

Make image_list.sh independent of host IP address

We do not need the HOST_IP to be detected in order to be able to list
our images. So just set that to some dummy value before sourcing
functions.

This will allow tools like disk-image-builder to work regardless of
whether get_default_host_ip succeeds or not.

Change-Id: I9c22d2066e34309e70e56076e3d17c5db6ecee06

Jens Rosenboom authored on 2015/07/01 22:22:53
Showing 1 changed files
... ...
@@ -3,6 +3,12 @@
3 3
 # Keep track of the DevStack directory
4 4
 TOP_DIR=$(cd $(dirname "$0")/.. && pwd)
5 5
 
6
+# The following "source" implicitly calls get_default_host_ip() in
7
+# stackrc and will die if the selected default IP happens to lie
8
+# in the default ranges for FIXED_RANGE or FLOATING_RANGE. Since we
9
+# do not really need HOST_IP to be properly set in the remainder of
10
+# this script, just set it to some dummy value and make stackrc happy.
11
+HOST_IP=SKIP
6 12
 source $TOP_DIR/functions
7 13
 
8 14
 # Possible virt drivers, if we have more, add them here. Always keep