...
|
...
|
@@ -172,7 +172,7 @@ SCHEDULER=${SCHEDULER:-nova.scheduler.simple.SimpleScheduler}
|
172
|
172
|
# Use the eth0 IP unless an explicit is set by ``HOST_IP`` environment variable
|
173
|
173
|
if [ ! -n "$HOST_IP" ]; then
|
174
|
174
|
HOST_IP=`LC_ALL=C /sbin/ifconfig eth0 | grep -m 1 'inet addr:'| cut -d: -f2 | awk '{print $1}'`
|
175
|
|
- if [ "$HOST_IP" = "" ];
|
|
175
|
+ if [ "$HOST_IP" = "" ]; then
|
176
|
176
|
echo "Could not determine host ip address. Please specify HOST_IP in your localrc."
|
177
|
177
|
exit 1
|
178
|
178
|
fi
|