Browse Source

[check-release-approval] Handle PTL-less projects

Not all teams have PTLs now. Don't assume we will get PTL information as
we check for approvals on release patches.

Change-Id: Id0d6eeaf66394806374781d1cf26c087a6e90f87
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
changes/75/764775/1
Sean McGinnis 10 months ago
parent
commit
d0b96ad639
  1. 3
      roles/check-release-approval/files/check_approval.py

3
roles/check-release-approval/files/check_approval.py

@ -127,7 +127,8 @@ class GerritChange(object):
# Fetch PTL and release liaisons
liaisons = get_liaisons(self.workspace, team)
if 'email' in govteam['ptl']:
# Some teams may be PTL-less, so don't assume we have PTL info
if 'email' in govteam.get('ptl', {}):
liaisons.append(govteam['ptl']['email'])
LOG.debug('%s needs %s' % (deliv_file, liaisons))

Loading…
Cancel
Save