diff options
author | fengyuanxing <feng.yuanxing@zte.com.cn> | 2018-03-06 11:48:41 +0800 |
---|---|---|
committer | fengyuanxing <feng.yuanxing@zte.com.cn> | 2018-03-06 11:48:41 +0800 |
commit | 14b946e3014c7f0fbb1e1187b400e7ca6e099e63 (patch) | |
tree | b231fec081aca442788636c014ac6aeeef77d58e | |
parent | 052f205dc7f9ecfee5f9bba8a0adfda67c50a6c0 (diff) |
Remove redundant code
Change-Id: Ied1f5150da3bc05fd1591f08787e91b09fd0c3b3
Issue-ID: VFC-784
Signed-off-by: fengyuanxing <feng.yuanxing@zte.com.cn>
-rw-r--r-- | lcm/pub/utils/scaleaspect.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lcm/pub/utils/scaleaspect.py b/lcm/pub/utils/scaleaspect.py index c2481ca5..b0b5d383 100644 --- a/lcm/pub/utils/scaleaspect.py +++ b/lcm/pub/utils/scaleaspect.py @@ -222,7 +222,7 @@ def get_and_check_params(scaleNsByStepsData, ns_InstanceId): numberOfSteps = scaleNsByStepsData["numberOfSteps"] scale_type = scaleNsByStepsData["scalingDirection"] - return ns_InstanceId, aspect, numberOfSteps, scale_type + return aspect, numberOfSteps, scale_type def get_scale_vnf_data(scaleNsData, ns_InstanceId): @@ -232,7 +232,7 @@ def get_scale_vnf_data(scaleNsData, ns_InstanceId): os.path.abspath(__file__)))) filename = curdir_path + "/ns/data/scalemapping.json" logger.debug("filename = %s" % filename) - ns_InstanceId, aspect, numberOfSteps, scale_type = get_and_check_params( + aspect, numberOfSteps, scale_type = get_and_check_params( scaleNsData, ns_InstanceId) return get_vnf_data( filename, @@ -247,7 +247,7 @@ def get_scale_vnf_data_package(scaleNsData, ns_InstanceId): scalingmap_json = catalog.get_scalingmap_json_package(ns_InstanceId) logger.debug("scalingmap_json = %s" % scalingmap_json) - ns_InstanceId, aspect, numberOfSteps, scale_type = get_and_check_params( + aspect, numberOfSteps, scale_type = get_and_check_params( scaleNsData, ns_InstanceId) return get_vnf_data_package( scalingmap_json, |