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:
Chris Dent 2018-06-29 16:38:43 +01:00
parent 162e55d07e
commit dd4e9496d3
1 changed files with 1 additions and 1 deletions

View File

@ -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):