From 5dc1a7f7c1b98d34922ad583aa661354c6871af0 Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Tue, 23 Sep 2014 11:07:45 +0300 Subject: [PATCH] job_accept_or_reject: Fixed bug in state name Valid state name for SR is 'declined'. The code was using 'rejected', which caused 'Bad request' OBS response. Change-Id: I464befb33f21d9a13929d99632535833971f39c0 Signed-off-by: Ed Bartosh --- job_accept_or_reject.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/job_accept_or_reject.py b/job_accept_or_reject.py index d207707..b9cc82a 100755 --- a/job_accept_or_reject.py +++ b/job_accept_or_reject.py @@ -83,7 +83,7 @@ def main(): submission = os.getenv("submission") comment = os.getenv("comment") if submission and comment: - state = action + "ed" # accepted or rejected + state = "accepted" if action == "accept" else "declined" return accept_or_reject(build, submission, state, target_project, comment) elif not submission: -- 2.7.4