Fixes db_upgrade and db_downgrade methods
db_upgrade and db_downgrade method were not using the argument repo_path, rather they were passing explicitly None for this argument to called methods db_api.db_upgrade & db_api.db_downgrade, respectively. Change-Id: Idaa9a1953a4eef18a4f676d9f82877fd9bc70b10 Closes-Bug: #1462450
This commit is contained in:
parent
e0704dd798
commit
1b5f06da7a
|
@ -42,10 +42,10 @@ class Commands(object):
|
|||
self.db_api.db_sync(CONF, repo_path=repo_path)
|
||||
|
||||
def db_upgrade(self, version=None, repo_path=None):
|
||||
self.db_api.db_upgrade(CONF, version, repo_path=None)
|
||||
self.db_api.db_upgrade(CONF, version, repo_path=repo_path)
|
||||
|
||||
def db_downgrade(self, version, repo_path=None):
|
||||
self.db_api.db_downgrade(CONF, version, repo_path=None)
|
||||
self.db_api.db_downgrade(CONF, version, repo_path=repo_path)
|
||||
|
||||
def execute(self):
|
||||
exec_method = getattr(self, CONF.action.name)
|
||||
|
|
Loading…
Reference in New Issue