Ensure vim database directory exists
Ensure /opt/platform/nfv/vim/<ver> directory is created before creating vim database. TCs: 1. Full upgrade AIO-DX 22.06 -> 22.12 Debian passed Closes-Bug: 1992828 Signed-off-by: Bin Qian <bin.qian@windriver.com> Change-Id: I330cd41a4405d9cb99a88aa938a1ac385f0e6f8e
This commit is contained in:
@@ -534,8 +534,9 @@ def import_databases(from_release, to_release, from_path=None, simplex=False):
|
||||
# a safe solution.
|
||||
VIM_DB_NAME = 'vim_db_v1'
|
||||
temp_db_path = '/tmp/'
|
||||
db_path = os.path.join(PLATFORM_PATH, 'nfv/vim',
|
||||
SW_VERSION, VIM_DB_NAME)
|
||||
db_dir = os.path.join(PLATFORM_PATH, 'nfv/vim', SW_VERSION)
|
||||
os.mkdir(db_dir)
|
||||
db_path = os.path.join(db_dir, VIM_DB_NAME)
|
||||
import_commands.append(
|
||||
("nfv-vim",
|
||||
"nfv-vim-manage db-load-data -d %s -f %s" %
|
||||
|
||||
Reference in New Issue
Block a user