Skip to content

Commit f6a553a

Browse files
committed
Replace remaining usage of [DEFAULT] sql_connection
The previous attempt[1] was incomplete and these was still one usage left. The deprecated alias was removed from oslo.db[2] and no longer works. [1] b6b9f04 [2] bf90aed0f7b19441644de2be807ec680ad86b1b1 Change-Id: Ib3b0271057578a64ae556a11224e3b366ddf89bf (cherry picked from commit b38a567)
1 parent 708ca14 commit f6a553a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

glance/tests/functional/test_glance_manage.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ def setUp(self):
4343
utils.safe_mkdirs(conf_dir)
4444
self.conf_filepath = os.path.join(conf_dir, 'glance-manage.conf')
4545
self.db_filepath = os.path.join(self.test_dir, 'tests.sqlite')
46-
self.connection = ('sql_connection = sqlite:///%s' %
46+
self.connection = ('connection = sqlite:///%s' %
4747
self.db_filepath)
4848
db_options.set_defaults(CONF, connection='sqlite:///%s' %
4949
self.db_filepath)
5050

5151
def _db_command(self, db_method):
5252
with open(self.conf_filepath, 'w') as conf_file:
53-
conf_file.write('[DEFAULT]\n')
53+
conf_file.write('[database]\n')
5454
conf_file.write(self.connection)
5555
conf_file.flush()
5656

@@ -60,7 +60,7 @@ def _db_command(self, db_method):
6060

6161
def _check_db(self, expected_exitcode):
6262
with open(self.conf_filepath, 'w') as conf_file:
63-
conf_file.write('[DEFAULT]\n')
63+
conf_file.write('[database]\n')
6464
conf_file.write(self.connection)
6565
conf_file.flush()
6666

0 commit comments

Comments
 (0)