Merge "use self.get_team method to get repo"

This commit is contained in:
Zuul 2018-12-04 16:10:28 +00:00 committed by Gerrit Code Review
commit 1112d1d1e5
1 changed files with 1 additions and 5 deletions

View File

@ -202,11 +202,7 @@ class Governance(object):
tags = set(tags)
if team_name:
try:
teams = [Team(team_name, self._team_data[team_name])]
except KeyError:
raise RuntimeError('No team %r found in %r' %
(team_name, list(self._team_data.keys())))
teams = [self.get_team(team_name)]
else:
teams = self._teams