update_bug.py: Check project along with series
Noticed recently that update_bug.py can end up updating the wrong project's task to Fix Committed on a bug affecting multiple projects because only the series is being checked. This adds an additional check to make sure the project also matches before setting the task to Fix Committed. Change-Id: I817535bd84f76780be44ad21a7e4bb4abbda0135 Depends-On: https://review.opendev.org/883664
This commit is contained in:
parent
f6757510c1
commit
5db1d05b70
@ -193,6 +193,7 @@ def process_bugtask(launchpad, task, git_log, args):
|
||||
# Look for a related task matching the series.
|
||||
for reltask in bugtask.related_tasks:
|
||||
if (reltask.bug_target_name.endswith(series) and
|
||||
reltask.bug_target_name.startswith(args.project) and
|
||||
reltask.status != u'Fix Released' and
|
||||
task.needs_change('set_fix_committed')):
|
||||
set_fix_committed(reltask)
|
||||
|
Loading…
Reference in New Issue
Block a user