Don't report changes without actions.

Change-Id: Idd9b95488814a6130484a97ab0c60541054c6bd4
This commit is contained in:
James E. Blair 2012-06-05 11:06:45 -07:00
parent 9d43ac139e
commit ad216e3115
1 changed files with 3 additions and 0 deletions

View File

@ -81,6 +81,9 @@ class Gerrit(object):
if not change.number:
self.log.debug("Change has no number; not reporting")
return
if not action:
self.log.debug("No action specified; not reporting")
return
changeid = '%s,%s' % (change.number, change.patchset)
return self.gerrit.review(change.project.name, changeid,
message, action)