From: gaoxuesx Date: Fri, 17 Oct 2014 05:34:51 +0000 (+0800) Subject: Ignore verifying the SSL certificate X-Git-Tag: 1.0~54 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=451a4ce720f9b4271e07cd4527df9721fa00f9ca;p=services%2Fjenkins-scripts.git Ignore verifying the SSL certificate Change-Id: If3211a1b60c2bbef86513b0c6eed142838619aea Signed-off-by: gaoxuesx --- diff --git a/common/iris_rest_client.py b/common/iris_rest_client.py index d2a6f54..4c5632e 100644 --- a/common/iris_rest_client.py +++ b/common/iris_rest_client.py @@ -15,11 +15,12 @@ import requests class IrisRestClient(object): """IRIS Rest Client""" - def __init__(self, server, user=None, pwd=None): + def __init__(self, server, user=None, pwd=None, verify=False): self.server = server self.session = None self.csrftoken = None self.header = None + self.verify = verify if user: self._login(user, pwd) @@ -29,6 +30,7 @@ class IrisRestClient(object): then get new csrftoken for accessing the server. """ session = requests.Session() + session.verify = self.verify try: session.get(self.server) except: