Skip to content

Commit

Permalink
webos: webos_ls2_api_list.bbclass: Fix invalid json issue
Browse files Browse the repository at this point in the history
: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: eb48a4e
Cherry-picked-from-branch:
  • Loading branch information
Rajesh Kumar Sahoo authored and ywbyun0815 committed Jun 5, 2024
1 parent 7a7c0f2 commit c118928
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meta-webos/classes/webos_ls2_api_list.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c118928

Please sign in to comment.