← Back to team overview

canonical-hw-cert team mailing list archive

[Merge] ~kevinyeh/hwcert-jenkins-tools:fix-duplicate-tracking-bug into hwcert-jenkins-tools:master

 

Kevin Yeh has proposed merging ~kevinyeh/hwcert-jenkins-tools:fix-duplicate-tracking-bug into hwcert-jenkins-tools:master.

Commit message:
Add new criterion which is the status of kernel-sru-workflow to find the correct tracking bug.

Requested reviews:
  Canonical Hardware Certification (canonical-hw-cert)

For more details, see:
https://code.launchpad.net/~kevinyeh/hwcert-jenkins-tools/+git/hwcert-jenkins-tools/+merge/426447
-- 
Your team Canonical Hardware Certification is requested to review the proposed merge of ~kevinyeh/hwcert-jenkins-tools:fix-duplicate-tracking-bug into hwcert-jenkins-tools:master.
diff --git a/trello-sru-bug-manager.py b/trello-sru-bug-manager.py
index 0a565a9..6b8e144 100755
--- a/trello-sru-bug-manager.py
+++ b/trello-sru-bug-manager.py
@@ -103,7 +103,8 @@ class LPHelper:
                     bug.get('version') == version and
                     bug.get('package') == package and
                     bug.get('series') == series and
-                    bug.get('variant') == 'debs'
+                    bug.get('variant') == 'debs' and
+                    bug.get('task').get("kernel-sru-workflow").get('status') == 'In Progress'
                    ):
                     return SruBug(
                         self.lp.bugs(bug.get('bug')),

Follow ups