From: Nathan Cutler Date: Sun, 26 Mar 2017 16:43:39 +0000 (+0200) Subject: tools: ceph-release-notes: s/labels/issue_labels/ X-Git-Tag: v12.0.2~226^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=69f5cd0e611a120b623bdbf3b7b3e5666e132ebe;p=ceph.git tools: ceph-release-notes: s/labels/issue_labels/ 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 --- diff --git a/src/script/ceph-release-notes b/src/script/ceph-release-notes index 55cc5b181603..5082bee501ec 100755 --- a/src/script/ceph-release-notes +++ b/src/script/ceph-release-notes @@ -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: