From 8fd3fda1320424d49a2c19b7edeb1ea107d0bd77 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Wed, 12 Jul 2023 18:10:26 +0000 Subject: [PATCH] Revert "update_bug.py: Check project along with series" This reverts commit 5db1d05b70ca01f2deed7b5809e239f609e1590f. I should have thought about this more before approving, it naively assumes project short names match between Gerrit and Launchpad, but the gerrit/projects.yaml file in openstack/project-config allows to remap projects in Gerrit to different names in LP. See the process_bugtask function for an example of dereferencing this. Change-Id: I3af965d705f032ffad30f65e4bd5e16c926dda14 --- jeepyb/cmd/update_bug.py | 1 - 1 file changed, 1 deletion(-) diff --git a/jeepyb/cmd/update_bug.py b/jeepyb/cmd/update_bug.py index 3ded116..31fecf7 100644 --- a/jeepyb/cmd/update_bug.py +++ b/jeepyb/cmd/update_bug.py @@ -193,7 +193,6 @@ 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)