Use 'version2' when syncing placement db
The original code was started before the version2 variable existed. Somewhere along the way the change was missed in a merge. This corrects the migration.db_sync call to use the right version. Change-Id: I1c0c9bbd9a2595822d74d2b82e26c39b60ca1822 Closes-Bug: #1778734
This commit is contained in:
parent
162e55d07e
commit
dd4e9496d3
|
@ -853,7 +853,7 @@ class ApiDbCommands(object):
|
|||
if CONF.placement_database.connection is not None:
|
||||
# Establish the independent context manager for the placement db.
|
||||
placement_db.configure(CONF)
|
||||
result = migration.db_sync(version, database='placement')
|
||||
result = migration.db_sync(version2, database='placement')
|
||||
return migration.db_sync(version2, database='api') and result
|
||||
|
||||
def version(self):
|
||||
|
|
Loading…
Reference in New Issue