From c1189287a9b4162b30b4369fddf9835314a236c0 Mon Sep 17 00:00:00 2001 From: Rajesh Kumar Sahoo Date: Wed, 5 Jun 2024 18:44:15 +0900 Subject: [PATCH] webos: webos_ls2_api_list.bbclass: Fix invalid json issue :Release Notes: Fix invalid json issue due to single quote character :Detailed Notes: Due to logic of replacement of single quote with double quote json content become invalid. so we will not replace single quote. :Testing Performed: Build and tested locally :QA Notes: NA :Issues Addressed: [WRQ-18776] CCC: webos_ls2_api_list.bbclass: Fix invalid json issue [WRQ-18801] invalid json issue due to single quote character replacement Cherry-picked-from-commit: eb48a4e78f1a15755589b44d5359c32a029f2e7a Cherry-picked-from-branch: --- meta-webos/classes/webos_ls2_api_list.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-webos/classes/webos_ls2_api_list.bbclass b/meta-webos/classes/webos_ls2_api_list.bbclass index 08f18ed09..64541570b 100644 --- a/meta-webos/classes/webos_ls2_api_list.bbclass +++ b/meta-webos/classes/webos_ls2_api_list.bbclass @@ -217,7 +217,7 @@ python do_write_ls2_api_list() { bb.note("BUILDHISTORY_DIR_IMAGE '%s' is empty or isn't a directory (probably buildhistory isn't enabled), will not create %s file there" % (d.getVar('BUILDHISTORY_DIR_IMAGE'), ls2_output_file)) return output = os.path.join(d.getVar('BUILDHISTORY_DIR_IMAGE'), ls2_output_file) - json_info_as_string = json.dumps(ls_api_info).replace("'", '"') + json_info_as_string = json.dumps(ls_api_info) with open(output, 'w') as f: f.write(json_info_as_string) bb.note("BUILD Path of ls2_api_list.json file : " + output)