Authored by root

Update bigdata inventory file

@@ -37,9 +37,9 @@ if __name__ == "__main__": @@ -37,9 +37,9 @@ if __name__ == "__main__":
37 module = json.load(open(module_file)) 37 module = json.load(open(module_file))
38 for lb_id in module.keys(): 38 for lb_id in module.keys():
39 if module[lb_id].has_key("domain") and module[lb_id]["domain"]: 39 if module[lb_id].has_key("domain") and module[lb_id]["domain"]:
40 - modify_alb_weight(args.secretid, args.secretkey, lb_id, module[lb_id]["domain"], ip_weight_dict=module[lb_id]["mappings"], default_weight=args.default_weight) 40 + modify_alb_weight(args.secretid, args.secretkey, lb_id, module[lb_id]["domain"], hostname_weight_dict=module[lb_id]["mappings"], default_weight=args.default_weight)
41 else: 41 else:
42 - modify_clb_weight(args.secretid, args.secretkey, lb_id, ip_weight_dict=module[lb_id]["mappings"], default_weight=args.default_weight) 42 + modify_clb_weight(args.secretid, args.secretkey, lb_id, hostname_weight_dict=module[lb_id]["mappings"], default_weight=args.default_weight)
43 else: 43 else:
44 #执行命令行参数 44 #执行命令行参数
45 lbs = describe_lbs(args.secretid,args.secretkey) 45 lbs = describe_lbs(args.secretid,args.secretkey)