From 2beb7080a9f626e1797dc8d85ebe274bc5cce28f Mon Sep 17 00:00:00 2001 From: flying Date: Sat, 17 Feb 2024 03:41:43 +0000 Subject: [PATCH 1/2] update tools/syscap_collector.py. Signed-off-by: flying --- tools/syscap_collector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/syscap_collector.py b/tools/syscap_collector.py index ea00085..8c3c09e 100755 --- a/tools/syscap_collector.py +++ b/tools/syscap_collector.py @@ -45,7 +45,7 @@ def dict_to_json(output_path: str, syscaps_dict: dict): for product_name, syscaps_list in syscaps_dict.items(): filename = os.path.join(output_path, f'{product_name}.json') with os.fdopen(os.open(filename, flags, modes), 'w') as f: - json.dump({'SysCaps': syscaps_list}, f) + json.dump({'SysCaps': syscaps_list}, indent=4, f) print("end...") -- Gitee From af6780f5a0db4ada58277846ce8a50375d04f533 Mon Sep 17 00:00:00 2001 From: flying Date: Sat, 17 Feb 2024 04:12:57 +0000 Subject: [PATCH 2/2] update tools/syscap_collector.py. Signed-off-by: flying --- tools/syscap_collector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/syscap_collector.py b/tools/syscap_collector.py index 8c3c09e..e60bdc4 100755 --- a/tools/syscap_collector.py +++ b/tools/syscap_collector.py @@ -45,7 +45,7 @@ def dict_to_json(output_path: str, syscaps_dict: dict): for product_name, syscaps_list in syscaps_dict.items(): filename = os.path.join(output_path, f'{product_name}.json') with os.fdopen(os.open(filename, flags, modes), 'w') as f: - json.dump({'SysCaps': syscaps_list}, indent=4, f) + json.dump({'SysCaps': syscaps_list}, f, indent=4) print("end...") -- Gitee