Skip to content

Commit

Permalink
Add VDR sort fields.
Browse files Browse the repository at this point in the history
Signed-off-by: Caroline Russell <[email protected]>
  • Loading branch information
cerrussell committed Aug 5, 2024
1 parent 369bf57 commit 446cc1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_json_diff/custom_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def load_json(json_file: str, options: Options) -> FlatDicts | BomDicts:
logger.error("Invalid JSON: %s", json_file)
sys.exit(1)
if options.bom_diff:
data = sort_dict_lists(data, ["url", "content", "ref", "name", "value"])
data = sort_dict_lists(data, ["bom-ref", "id", "url", "content", "ref", "name", "value"])
data = filter_dict(data, options).to_dict(unflat=True)
return BomDicts(options, json_file, data, {})
return filter_dict(data, options)
Expand Down

0 comments on commit 446cc1b

Please sign in to comment.