[#30] presets: Pretty JSON files

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-10-25 18:06:43 +03:00 committed by fyrchik
parent 3fbaf0753d
commit 0e34bf64bd
2 changed files with 2 additions and 2 deletions

View file

@ -69,7 +69,7 @@ def main():
data = {'containers': container_list, 'objects': objects_struct, 'obj_size': args.size + " Kb"}
with open(args.out, 'w+') as f:
json.dump(data, f, ensure_ascii=False)
json.dump(data, f, ensure_ascii=False, indent=2)
print(f"Result:")
print(f" > Total Containers has been created: {len(container_list)}.")

View file

@ -67,7 +67,7 @@ def main():
data = {'buckets': bucket_list, 'objects': objects_struct, 'obj_size': args.size + " Kb"}
with open(args.out, 'w+') as f:
json.dump(data, f, ensure_ascii=False)
json.dump(data, f, ensure_ascii=False, indent=2)
print(f"Result:")
print(f" > Total Buckets has been created: {len(bucket_list)}.")