Skip to content

Commit 2d7c346

Browse files
committed
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
1 parent c1dbf10 commit 2d7c346

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stack.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ function read_password {
606606
# The available database backends are listed in ``DATABASE_BACKENDS`` after
607607
# ``lib/database`` is sourced. ``mysql`` is the default.
608608

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"
610610

611611

612612
# Queue Configuration

0 commit comments

Comments
 (0)