aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests/python_utils/comment_on_pr.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/run_tests/python_utils/comment_on_pr.py')
-rw-r--r--tools/run_tests/python_utils/comment_on_pr.py3
1 files changed, 1 insertions, 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 7f39671659..edd3603f67 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()
-