diff options
author | deepshikhaaa <deepshikhakhandelwal8@gmail.com> | 2017-11-21 14:40:09 +0530 |
---|---|---|
committer | deepshikhaaa <deepshikhakhandelwal8@gmail.com> | 2017-11-21 14:40:09 +0530 |
commit | adb2931b5396c165ddc0be510545b1932ecebf2b (patch) | |
tree | e2788f4c1eca2db0d8d9a92c870684788a72e89a /build-gluster-org/scripts/close-old-reviews.py | |
parent | bd5cbc88e14d138486a5d4664bdc68a007facbd5 (diff) |
Another bug fix in close-old-reviews
Change-Id: Ic680ef267c3339612968b4c276cc2fbb342242e4
Diffstat (limited to 'build-gluster-org/scripts/close-old-reviews.py')
-rw-r--r-- | build-gluster-org/scripts/close-old-reviews.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/build-gluster-org/scripts/close-old-reviews.py b/build-gluster-org/scripts/close-old-reviews.py index 7466456..db9eec7 100644 --- a/build-gluster-org/scripts/close-old-reviews.py +++ b/build-gluster-org/scripts/close-old-reviews.py @@ -23,17 +23,17 @@ def get_unique_id(days=90, count=25): def close_reviews(oldest_id): for uid in oldest_id: try: - url = https://review.gluster.org/a/changes/glusterfs~master~{}/abandon.format(uid) + url = 'https://review.gluster.org/a/changes/glusterfs~master~{}/abandon'.format(uid) data = {"message" : "This change has not had activity in 90 days." "We're automatically closing this change.\n" "Please re-open and get in touch with the component owners" " if you are interested in merging this patch."} username = os.environ.get('HTTP_USERNAME') password = os.environ.get('HTTP_PASSWORD') - respone = requests.post(url, auth('username', 'password'), json=data) + response = requests.post(url, auth('username', 'password'), json=data) response.raise_for_status() except Exception: - print("Authentication error.Username or password is incorrect") + print("Authentication error. Username or password is incorrect") def main(): |