summaryrefslogtreecommitdiffstats
path: root/lcm
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2020-03-21 14:07:32 +0800
committerYan Yang <yangyanyj@chinamobile.com>2020-03-21 06:12:11 +0000
commit0352a65cf29f1e1498d51b3f60982f185a14bda7 (patch)
tree689989e7af9d7ce856ea238ac4dea70fd3180884 /lcm
parent13487a71b3aa2356bfb0d3effc44b8b574b02feb (diff)
Upgrade Optimizing SSL connection of calling lifecyclechangesnotification interface
Change-Id: I8375dd1b396ee236a48a6a0ddd52938490dcbb08 Issue-ID: VFC-1651 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'lcm')
-rw-r--r--lcm/lcm/nf/biz/create_subscription.py3
1 files changed, 2 insertions, 1 deletions
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))