Authored by chunhua.zhang

bug fix

@@ -40,7 +40,7 @@ def modify_clb_weight(SecretId, SecretKey, lb_id, ip_weight_dict={}, hostname_we @@ -40,7 +40,7 @@ def modify_clb_weight(SecretId, SecretKey, lb_id, ip_weight_dict={}, hostname_we
40 elif hostname_weight_dict: 40 elif hostname_weight_dict:
41 if backend['instanceName'] in hostname_weight_dict.keys(): 41 if backend['instanceName'] in hostname_weight_dict.keys():
42 # setup the instance_id --> weight 42 # setup the instance_id --> weight
43 - instance_weight[backend['unInstanceId']] = hostname_weight_dict[backend['unInstanceId']] 43 + instance_weight[backend['unInstanceId']] = hostname_weight_dict[backend['instanceName']]
44 else: 44 else:
45 instance_weight[backend['unInstanceId']] = default_weight 45 instance_weight[backend['unInstanceId']] = default_weight
46 else: 46 else: