This is done to stop confusing developers by sending them notifications
about revoked SRs. SRs are revoked because submissions are accepted by
repa tool.
Fixes: #1652
Change-Id: I2663899ef9a90538c89fc4f485ef34e6cacd2203
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
# Get event type
event_type = event_fields['event_type']
- notify_submiter(event_fields, data)
+ if event_type != 'OBS_SRCSRV_REQUEST_REVOKED':
+ notify_submiter(event_fields, data)
gerrit = Gerrit(os.getenv('GERRIT_HOSTNAME'), os.getenv('GERRIT_USERNAME'),
os.getenv('GERRIT_SSHPORT'),