Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
thegreyd committed Apr 25, 2023
1 parent 8a3a9f0 commit 68af0ce
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions elliottlib/bzutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def is_flaw_bug(self):
def is_ocp_bug(self):
raise NotImplementedError

@property
def component(self):
raise NotImplementedError

Expand Down Expand Up @@ -141,6 +142,14 @@ def __init__(self, bug_obj):
def id(self):
return self.bug.id

@property
def product(self):
return self.bug.product

@property
def component(self):
return self.bug.component

@property
def target_release(self):
return self.bug.target_release
Expand Down
3 changes: 2 additions & 1 deletion elliottlib/cli/verify_attached_bugs_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,10 +417,11 @@ def _verify_bug_status(self, bugs):
self._complain(f"Bug <{bug.weburl}|{bug.id}> has status {status}")

def _find_invalid_trackers(self, bugs):
logger.info("Checking for invalid tracker bugs")
# complain about invalid tracker bugs
for bug in bugs:
if bug.is_invalid_tracker_bug():
self._complain(f"Bug <{bug.weburl}|{bug.id}> looks like a tracker bug but is not. CVE in summary? Missing labels?")
self._complain(f"Bug <{bug.weburl}|{bug.id}> is an invalid tracker bug. Please fix")

def _complain(self, problem: str):
red_print(problem)
Expand Down

0 comments on commit 68af0ce

Please sign in to comment.