canonical-hw-cert team mailing list archive
-
canonical-hw-cert team
-
Mailing list archive
-
Message #06059
[Merge] ~kevinyeh/hwcert-jenkins-tools:bug-status-transfer-to-json into hwcert-jenkins-tools:master
Kevin Yeh has proposed merging ~kevinyeh/hwcert-jenkins-tools:bug-status-transfer-to-json into hwcert-jenkins-tools:master.
Commit message:
Since kernel team use status.json instead of status.yaml for tracking bug status.
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/427065
--
Your team Canonical Hardware Certification is requested to review the proposed merge of ~kevinyeh/hwcert-jenkins-tools:bug-status-transfer-to-json into hwcert-jenkins-tools:master.
diff --git a/trello-sru-bug-manager.py b/trello-sru-bug-manager.py
index b1fcb6a..6f0159b 100755
--- a/trello-sru-bug-manager.py
+++ b/trello-sru-bug-manager.py
@@ -24,7 +24,7 @@ import re
import requests
import sys
import traceback
-import yaml
+import json
from launchpadlib.launchpad import Launchpad, uris
from trello import TrelloClient
@@ -45,9 +45,9 @@ class LPHelper:
try:
# Take the kernel sru bug status data and make a list out of it
# so we can use it more easily
- url = ('https://kernel.ubuntu.com/~kernel-ppa/status'
- '/swm/status.yaml')
- bugdata = yaml.safe_load(requests.get(url).content)['trackers']
+ url = ('https://kernel.ubuntu.com/~kernel-ppa/status/'
+ 'swm/status.json')
+ bugdata = json.loads(requests.get(url).content)['trackers']
for x in bugdata:
# Add a 'bug' field that we can use later
bugdata[x]['bug'] = x
Follow ups