| 1 | --- |
| 2 | fixes: |
| 3 | - > |
| 4 | [`bug 1844157 <https://bugs.launchpad.net/keystone/+bug/1844157>`_] |
| 5 | When performing `keystone-manage db_sync --check` if the legacy repo |
| 6 | started at the same version number as the expand/contract/migrate |
| 7 | repos the check to see if the db was under version control failed |
| 8 | indicating that the db was up-to-date. This was due to the function |
| 9 | `get_init_version` never receiving the path for the repo queried for |
| 10 | version information. The fix is to ensure the repo path is always |
| 11 | passed to get_init_version from the |
| 12 | `keystone.common.sql.upgrade.get_db_version` function. |
| 13 |