From 0352a65cf29f1e1498d51b3f60982f185a14bda7 Mon Sep 17 00:00:00 2001 From: yangyan Date: Sat, 21 Mar 2020 14:07:32 +0800 Subject: Upgrade Optimizing SSL connection of calling lifecyclechangesnotification interface Change-Id: I8375dd1b396ee236a48a6a0ddd52938490dcbb08 Issue-ID: VFC-1651 Signed-off-by: yangyan --- lcm/lcm/nf/biz/create_subscription.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) -- cgit 1.2.3-korg