Skip to content

Commit

Permalink
Add KonfluxRecord.__repr__ to facilitate displaying of builds in debu…
Browse files Browse the repository at this point in the history
…gger
  • Loading branch information
locriandev committed Dec 12, 2024
1 parent 2988bab commit dcd8c38
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions artcommon/artcommonlib/konflux/konflux_build_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ def __init__(self, name: str = '', group: str = '', version: str = '', release:
self.build_id = None
self.nvr = None

def __repr__(self):
return self.nvr

def init_uuids(self, record_id, build_id, nvr):
# These fields must be computed in the child class, otherwise we would be hashing incomplete types into UUIDs
self.record_id = record_id if record_id else self.generate_record_id()
Expand Down

0 comments on commit dcd8c38

Please sign in to comment.