aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests/python_utils
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-03-29 09:30:07 -0700
committerGravatar Craig Tiller <ctiller@google.com>2017-03-29 09:30:07 -0700
commita61dce07a860e6d91ce65b88e3ad9468014bb979 (patch)
tree258aa4c343848af5da85f003da79ddd95f0d6190 /tools/run_tests/python_utils
parentab1c6c3b313d7e3ef641b23f1faba641b8044b0c (diff)
Syntax fix
Diffstat (limited to 'tools/run_tests/python_utils')
-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()
-