Authored by chunhua.zhang

bug fix

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