Additional accepted action for re 76/84176/1
authorhyokeun <hyokeun.jeon@samsung.com>
Wed, 17 Aug 2016 06:22:04 +0000 (15:22 +0900)
committerhyokeun <hyokeun.jeon@samsung.com>
Wed, 17 Aug 2016 06:22:04 +0000 (15:22 +0900)
Mismatch action parameter (accepted) between repa and re.

Change-Id: I0ed2656e4137545890a987df7ab8fa292c73c2f4

job_re.py

index ab9baa5..6bee2d2 100755 (executable)
--- a/job_re.py
+++ b/job_re.py
@@ -100,8 +100,8 @@ def main():
     comment = os.getenv("comment")
     package = os.getenv("package")
     if submission and comment:
-        if action in ("accept", "reject"):
-            state = "accepted" if action == "accept" else "declined"
+        if action in ("accept", "accepted", "reject", "declined"):
+            state = "accepted" if action == "accept" or action == "accepted" else "declined"
             print "Submission %s has been %sed" % (submission, action)
             return accept_or_reject(build, submission, state,
                                     target_project, comment)