[BuildMonitor] remove the 'REVOKED' check code 73/126073/1
authorSungHun Hwang <sh0924.hwang@samsung.com>
Thu, 20 Apr 2017 04:57:24 +0000 (13:57 +0900)
committerSungHun Hwang <sh0924.hwang@samsung.com>
Thu, 20 Apr 2017 04:57:24 +0000 (13:57 +0900)
remove the 'REVOKED' check code to avoid the duplicated excution
because 'Use STATECHANGE event for processing request' is applied

Change-Id: I9944ff099e53873c4f7f899bb45af14c3d66f2e2
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
job_buildmonitor.py

index 889ff64..997c76a 100644 (file)
@@ -948,8 +948,8 @@ def sr_accept_reject_for_sr_status_detail(event_fields, bm_start_datetime,
         sr_accept_for_sr_stage(bm_src_prj_name, bm_target_prj_name,
                                bm_start_datetime, bm_end_datetime, bm_git_tag)
 
-    elif obs_req_status == 'REVOKED' or obs_req_status == 'DECLINED':
-        print '[%s][REVOKED or DECLINED] obs_req_status(%s)\n' \
+    elif obs_req_status == 'DECLINED':
+        print '[%s][DECLINED] obs_req_status(%s)\n' \
               % (__file__, obs_req_status)
 
         # get info_project_id -> get pre_build_project_id