From a61dce07a860e6d91ce65b88e3ad9468014bb979 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Wed, 29 Mar 2017 09:30:07 -0700 Subject: [PATCH] Syntax fix --- tools/run_tests/python_utils/comment_on_pr.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/run_tests/python_utils/comment_on_pr.py b/tools/run_tests/python_utils/comment_on_pr.py index 7f39671659d..edd3603f67d 100644 --- a/tools/run_tests/python_utils/comment_on_pr.py +++ b/tools/run_tests/python_utils/comment_on_pr.py @@ -39,7 +39,7 @@ def comment_on_pr(text): return req = urllib2.Request( url = 'https://api.github.com/repos/grpc/grpc/issues/%s/comments' % - os.environ('ghprbPullId'), + os.environ['ghprbPullId'], data = json.dumps({'body': text}), headers = { 'Authorization': 'token %s' % os.environ['JENKINS_OAUTH_TOKEN'], @@ -47,4 +47,3 @@ def comment_on_pr(text): }) with urllib2.urlopen(req) as rsp: print rsp.read() -