Kevin Yeh has proposed merging ~kevinyeh/hwcert-jenkins-tools:fix-attach-labels 
into hwcert-jenkins-tools:master.

Commit message:
Since newer version of py-trello use labels instead of list_labels, so need to 
modify it.

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/426486
-- 
Your team Canonical Hardware Certification is requested to review the proposed 
merge of ~kevinyeh/hwcert-jenkins-tools:fix-attach-labels into 
hwcert-jenkins-tools:master.
diff --git a/trello-sru-bug-manager.py b/trello-sru-bug-manager.py
index 6b8e144..b1fcb6a 100755
--- a/trello-sru-bug-manager.py
+++ b/trello-sru-bug-manager.py
@@ -191,7 +191,7 @@ def attach_labels(board, card, label_list):
     for labelstr in label_list:
         for label in board.get_labels():
             if label.name == labelstr:
-                labels = card.list_labels or []
+                labels = card.labels or []
                 if label not in labels:
                     # Avoid crash if checking labels fails to find it
                     try:
-- 
Mailing list: https://launchpad.net/~canonical-hw-cert
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~canonical-hw-cert
More help   : https://help.launchpad.net/ListHelp

Reply via email to