summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-03-24 11:43:55 -0700
committerDan Albert <danalbert@google.com>2015-03-24 11:43:55 -0700
commit7d57623755e68c2310c2c87ada31128b9b1989b9 (patch)
tree8875e3fb86962c36e55e2b2f8dfb55390ba1dc5d
parent93d44ff2a6e0febe18d42d5690e85023545318b4 (diff)
downloadbionic-7d57623755e68c2310c2c87ada31128b9b1989b9.zip
bionic-7d57623755e68c2310c2c87ada31128b9b1989b9.tar.gz
bionic-7d57623755e68c2310c2c87ada31128b9b1989b9.tar.bz2
Convert result of a call to JSON.
I still had the service that was relying on this running on top of local changes, so this hadn't been a problem yet. Change-Id: I63b45b8c7cf81972dbb7128013c1c777a2342d4c
-rw-r--r--tools/bionicbb/gerrit.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/bionicbb/gerrit.py b/tools/bionicbb/gerrit.py
index 76e42b4..40719b4 100644
--- a/tools/bionicbb/gerrit.py
+++ b/tools/bionicbb/gerrit.py
@@ -62,8 +62,8 @@ def get_labels(change_id, patch_set):
}
}
"""
- details = call('/changes/{}/revisions/{}/review'.format(
- change_id, patch_set))
+ details = json.loads(call('/changes/{}/revisions/{}/review'.format(
+ change_id, patch_set)))
labels = {'Code-Review': {}, 'Verified': {}}
for review in details['labels']['Code-Review']['all']:
if 'value' in review and 'email' in review: