]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tools: ceph-release-notes: s/labels/issue_labels/
authorNathan Cutler <ncutler@suse.com>
Sun, 26 Mar 2017 16:43:39 +0000 (18:43 +0200)
committerNathan Cutler <ncutler@suse.com>
Sun, 26 Mar 2017 17:38:48 +0000 (19:38 +0200)
Variable contains only labels active for a particular issue, so
name it more appropriately in preparation for the next commit.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
src/script/ceph-release-notes

index 55cc5b18160319c9f0cb88f0ebd6cce9a20698ad..5082bee501ece5d124556b4c18fb5742af8abb1a 100755 (executable)
@@ -81,10 +81,10 @@ def split_component(title,gh,number):
         return match.group(1)+match.group(2)
     else:
         issue = gh.repos("ceph")("ceph").issues(number).get()
-        labels = {it['name'] for it in issue['labels']}
-        if 'documentation' in labels:
+        issue_labels = {it['name'] for it in issue['labels']}
+        if 'documentation' in issue_labels:
             return 'doc: '+ title
-        item = {'bluestore','build/ops','cephfs','common','core','mgr','mon','performance','pybind','rdma','rgw','rbd','tests','tools'}.intersection(labels)
+        item = {'bluestore','build/ops','cephfs','common','core','mgr','mon','performance','pybind','rdma','rgw','rbd','tests','tools'}.intersection(issue_labels)
         if item:
             return ",".join(item)+': '+title
         else: