From adb2931b5396c165ddc0be510545b1932ecebf2b Mon Sep 17 00:00:00 2001 From: deepshikhaaa Date: Tue, 21 Nov 2017 14:40:09 +0530 Subject: Another bug fix in close-old-reviews Change-Id: Ic680ef267c3339612968b4c276cc2fbb342242e4 --- build-gluster-org/scripts/close-old-reviews.py | 6 +++--- 1 file 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(): -- cgit