Do not notify submitter when SR is revoked
authorEd Bartosh <eduard.bartosh@intel.com>
Sat, 15 Feb 2014 13:02:21 +0000 (15:02 +0200)
committerEd Bartosh <eduard.bartosh@intel.com>
Tue, 18 Feb 2014 06:02:09 +0000 (08:02 +0200)
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>
job_request.py

index b5497c6..0cb03b9 100755 (executable)
@@ -302,7 +302,8 @@ def main():
     # 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'),