Skip to content
Snippets Groups Projects
Commit 3de319dc authored by Bharath Vamsi Adurti's avatar Bharath Vamsi Adurti Committed by garciadeblas
Browse files

Bug 2375 Fixed Unable to get notification during NS instantiation using SOL003 APIs


Change-Id: I01c29de775156b737a1c298283bc50d2f51da33a
Signed-off-by: default avatarAdurti <adurti.v@tataelxsi.co.in>
parent 926e2b35
No related branches found
No related tags found
No related merge requests found
Pipeline #18165 passed with stage
in 3 minutes and 47 seconds
......@@ -18,6 +18,8 @@ __date__ = "$28-Apr-2020 23:59:59$"
import asyncio
import aiohttp
import ssl
import certifi
from http import HTTPStatus
import json
import logging
......@@ -154,7 +156,9 @@ class NotificationBase:
if notifications:
tasks = []
async with aiohttp.ClientSession() as session:
ssl_context = ssl.create_default_context(cafile=certifi.where())
conn = aiohttp.TCPConnector(ssl=ssl_context)
async with aiohttp.ClientSession(connector=conn) as session:
for notification in notifications:
tasks.append(
asyncio.ensure_future(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment