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:
Doug Hellmann 2018-03-01 16:12:25 -05:00
parent 748e99482a
commit 951c6639fd

View File

@ -43,12 +43,11 @@ EXCEPTIONS = ['openstack/release-test']
def repositories_list(deliverables_dir, series):
"""Yields (team, repo) tuples for cycle-with-milestones deliverables"""
deliverables = deliverable.Deliverables(deliverables_dir)
for team, series, dname, dinfo in deliverables.get_deliverables(None, series):
d = deliverable.Deliverable(team, series, dname, dinfo)
for d in deliverables.get_deliverables(None, series):
if d.model != 'cycle-with-milestones':
continue
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):
if repo not in EXCEPTIONS:
yield (d.team, repo)