fix parameter name error 07/73207/1
authormaopengzhang <zhang.maopeng1@zte.com.cn>
Wed, 21 Nov 2018 02:30:47 +0000 (10:30 +0800)
committermaopengzhang <zhang.maopeng1@zte.com.cn>
Wed, 21 Nov 2018 02:30:47 +0000 (10:30 +0800)
fix parameter name error: vnf_id to vnf_pkg_id

Change-Id: Ifddabf8d13a718786596be0e9821a45cac61c5d5
Issue-ID: VFC-1185
Signed-off-by: maopengzhang <zhang.maopeng1@zte.com.cn>
catalog/packages/biz/common.py

index f2b3779..c4205fb 100644 (file)
@@ -20,9 +20,9 @@ from catalog.pub.utils import fileutil
 CHUNK_SIZE = 1024 * 8
 
 
-def save(remote_file, descriptor_id):
+def save(remote_file, vnf_pkg_id):
     local_file_name = remote_file.name
-    local_file_dir = os.path.join(CATALOG_ROOT_PATH, descriptor_id)
+    local_file_dir = os.path.join(CATALOG_ROOT_PATH, vnf_pkg_id)
     local_file_name = os.path.join(local_file_dir, local_file_name)
     if not os.path.exists(local_file_dir):
         fileutil.make_dirs(local_file_dir)