1
This commit is contained in:
parent
20a52d2989
commit
d6d9c85d34
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python
|
||||
#!/usr/bin/python
|
||||
# -*- coding:utf-8 _*-
|
||||
"""
|
||||
@author: pengtao
|
||||
@ -28,7 +28,7 @@ def read_json(filename):
|
||||
|
||||
def main():
|
||||
csv_data = get_csv()
|
||||
for i in range(1, 3):
|
||||
for i in range(1, 4):
|
||||
check_file = f"server_list_{i}.json"
|
||||
json_data = read_json(check_file)
|
||||
print(f"check {check_file}")
|
||||
@ -36,7 +36,7 @@ def main():
|
||||
for csv_line in csv_data:
|
||||
if int(line['serverid']) == int(csv_line['serverid']):
|
||||
if line['redis_host'] == csv_line['redis_host'] and int(line['redis_port']) == int(
|
||||
csv_line['redis_port']):
|
||||
csv_line['redis_port']):
|
||||
pass
|
||||
else:
|
||||
print(line, csv_line, check_file)
|
||||
|
Loading…
x
Reference in New Issue
Block a user