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)
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)