Skip to content

Commit

Permalink
Check null tempalte-id
Browse files Browse the repository at this point in the history
  • Loading branch information
Hook25 committed Sep 24, 2024
1 parent add8c6e commit 570c8c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion checkbox-ng/checkbox_ng/launcher/subcommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -1393,7 +1393,8 @@ def invoked(self, ctx):
obj["certification-status"] = (
self.get_effective_certification_status(unit)
)
obj["template-id"] = unit.template_id
if unit.template_id:
obj["template-id"] = unit.template_id
obj_list.append(obj)

obj_list.sort(key=lambda x: x.get("template-id", x["id"]) or x["id"])
Expand Down

0 comments on commit 570c8c6

Please sign in to comment.