fix the typo error of hpy_automation scripts 64/96064/2
authoryangyan <yangyanyj@chinamobile.com>
Fri, 20 Sep 2019 07:47:40 +0000 (15:47 +0800)
committerDaniel Rose <dr695h@att.com>
Fri, 20 Sep 2019 14:04:15 +0000 (14:04 +0000)
Change-Id: I27b43d63042bdb46f1ff362335a26bf6726674a0
Issue-ID: INT-1239
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
test/hpa_automation/tosca/hpa_automation.py

index c385709..4eeabbf 100755 (executable)
@@ -92,10 +92,10 @@ def create_vlm(parameters):
 
 def create_vsp(parameters, in_list):
     vnfs = parameters["vnf"]
-    vsp_dict = {}
+    vsp_ids = {}
     for name, value in vnfs.iteritems():
         create_string = "oclip vsp-create -j {} -o {} -e {} -x {} -y {} -i {} -c {} -g {} -u {} -p {} -m {}".format( in_list[0], \
-          parameters["onboarding-method"], parameters["vendor-name" ], value.get("vsp-name"), value.get("vsp-desc"), in_list[1], \
+          parameters["onboarding-method"], parameters["vendor-name"], value.get("vsp-name"), value.get("vsp-desc"), in_list[1], \
           in_list[2], in_list[3], parameters["sdc_creator"], parameters["sdc_password"], parameters["sdc_onboarding_url"] )
         command_out = (os.popen(create_string)).read()
         out_list = get_out_helper(command_out)