From 5b285fae2c7a5bf7b524c36a0e4a9326deb8ce2f Mon Sep 17 00:00:00 2001 From: yangyan Date: Thu, 28 May 2020 16:03:05 +0800 Subject: Update etsicatalog code to get notification message from sdc Change-Id: Ib81d78754ecdfd2c1c02a5ddbe1758f723a17420 Issue-ID: MODELING-335 Signed-off-by: yangyan --- catalog/pub/Dmaap_lib/dmaap/consumer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'catalog/pub/Dmaap_lib/dmaap/consumer.py') diff --git a/catalog/pub/Dmaap_lib/dmaap/consumer.py b/catalog/pub/Dmaap_lib/dmaap/consumer.py index d817b81..d5b5351 100644 --- a/catalog/pub/Dmaap_lib/dmaap/consumer.py +++ b/catalog/pub/Dmaap_lib/dmaap/consumer.py @@ -23,6 +23,7 @@ import requests from catalog.pub.Dmaap_lib.pub.exceptions import DmaapClientException +requests.packages.urllib3.disable_warnings() logger = logging.getLogger(__name__) @@ -75,7 +76,7 @@ class ConsumerClient: url = self.create_url() if self.api_key: headers = self.create_headers() - ret = requests.get(url=url, headers=headers) + ret = requests.get(url=url, headers=headers, verify=False) else: ret = requests.get(url) logger.info("Status code is %s, detail is %s.", ret.status_code, ret.json()) -- cgit 1.2.3-korg