From: yangyan Date: Sat, 21 Mar 2020 06:07:32 +0000 (+0800) Subject: Upgrade Optimizing SSL connection of calling lifecyclechangesnotification interface X-Git-Tag: 1.3.8~2 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=vfc%2Fgvnfm%2Fvnflcm.git;a=commitdiff_plain;h=0352a65cf29f1e1498d51b3f60982f185a14bda7 Upgrade Optimizing SSL connection of calling lifecyclechangesnotification interface Change-Id: I8375dd1b396ee236a48a6a0ddd52938490dcbb08 Issue-ID: VFC-1651 Signed-off-by: yangyan --- diff --git a/lcm/lcm/nf/biz/create_subscription.py b/lcm/lcm/nf/biz/create_subscription.py index e999d6ed..efec9250 100644 --- a/lcm/lcm/nf/biz/create_subscription.py +++ b/lcm/lcm/nf/biz/create_subscription.py @@ -55,7 +55,8 @@ class CreateSubscription: "to %s" % self.callback_uri) retry_count = 3 while retry_count > 0: - response = requests.get(self.callback_uri, timeout=10) + requests.packages.urllib3.disable_warnings() + response = requests.get(self.callback_uri, timeout=10, verify=False) if response.status_code == status.HTTP_204_NO_CONTENT: return logger.debug("callbackUri %s returns %s status code." % (self.callback_uri, response.status_code))