Browse code

Exit when printing error about database config

When finding no configured database, devstack prints
a suitable error in the logs

"No database enabled"

but then just carries on running, as a result the developer
is very unlikely to ever see the original error message.
Change the 'echo' to a 'die' so that it stop immediately
making the error message clearly visible.

Change-Id: Ibd86bfcb5d4a3b90a1ee7a5bd637b01124e3a6ba

Daniel P. Berrange authored on 2015/01/22 23:37:04
Showing 1 changed files
... ...
@@ -606,7 +606,7 @@ function read_password {
606 606
 # The available database backends are listed in ``DATABASE_BACKENDS`` after
607 607
 # ``lib/database`` is sourced. ``mysql`` is the default.
608 608
 
609
-initialize_database_backends && echo "Using $DATABASE_TYPE database backend" || echo "No database enabled"
609
+initialize_database_backends && echo "Using $DATABASE_TYPE database backend" || die $LINENO "No database enabled"
610 610
 
611 611
 
612 612
 # Queue Configuration