fix aclmanager for changes in get_deliverables()
Now that get_deliverables() returns Deliverable objects instead of tuples we don't have to turn the tuples into objects. Change-Id: I42c826a82099dd9e3b26253385dd565b2948763f Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
parent
748e99482a
commit
951c6639fd
@ -43,12 +43,11 @@ EXCEPTIONS = ['openstack/release-test']
|
|||||||
def repositories_list(deliverables_dir, series):
|
def repositories_list(deliverables_dir, series):
|
||||||
"""Yields (team, repo) tuples for cycle-with-milestones deliverables"""
|
"""Yields (team, repo) tuples for cycle-with-milestones deliverables"""
|
||||||
deliverables = deliverable.Deliverables(deliverables_dir)
|
deliverables = deliverable.Deliverables(deliverables_dir)
|
||||||
for team, series, dname, dinfo in deliverables.get_deliverables(None, series):
|
for d in deliverables.get_deliverables(None, series):
|
||||||
d = deliverable.Deliverable(team, series, dname, dinfo)
|
|
||||||
if d.model != 'cycle-with-milestones':
|
if d.model != 'cycle-with-milestones':
|
||||||
continue
|
continue
|
||||||
if not d.repos:
|
if not d.repos:
|
||||||
print('WARNING: no releases for {} in {}'.format(dname, series))
|
print('WARNING: no releases for {} in {}'.format(d.name, d.series))
|
||||||
for repo in sorted(d.repos):
|
for repo in sorted(d.repos):
|
||||||
if repo not in EXCEPTIONS:
|
if repo not in EXCEPTIONS:
|
||||||
yield (d.team, repo)
|
yield (d.team, repo)
|
||||||
|
Loading…
Reference in New Issue
Block a user