fix parameter name error 27/73327/1
authormaopengzhang <zhang.maopeng1@zte.com.cn>
Wed, 21 Nov 2018 02:30:47 +0000 (10:30 +0800)
committerFu Jinhua <fu.jinhua@zte.com.cn>
Thu, 22 Nov 2018 03:23:02 +0000 (03:23 +0000)
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>
(cherry picked from commit af6a879fe24fdc83f3d72020d3a8ffb5c38f62cb)

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)