diff options
author | 2020-05-28 16:03:05 +0800 | |
---|---|---|
committer | 2020-05-28 08:06:14 +0000 | |
commit | 5b285fae2c7a5bf7b524c36a0e4a9326deb8ce2f (patch) | |
tree | 2ac44d6d57eb3771606022756dcb480bfa547988 /catalog/pub/Dmaap_lib/dmaap/identity.py | |
parent | 9fe3930a822fe7978ffab9838611dc61b91cc948 (diff) |
Update etsicatalog code to get notification message from sdc
Change-Id: Ib81d78754ecdfd2c1c02a5ddbe1758f723a17420
Issue-ID: MODELING-335
Signed-off-by: yangyan <dengyuanhong@chinamobile.com>
Diffstat (limited to 'catalog/pub/Dmaap_lib/dmaap/identity.py')
-rw-r--r-- | catalog/pub/Dmaap_lib/dmaap/identity.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/catalog/pub/Dmaap_lib/dmaap/identity.py b/catalog/pub/Dmaap_lib/dmaap/identity.py index 9ca68cd..57f4016 100644 --- a/catalog/pub/Dmaap_lib/dmaap/identity.py +++ b/catalog/pub/Dmaap_lib/dmaap/identity.py @@ -19,6 +19,7 @@ import requests from catalog.pub.Dmaap_lib.pub.exceptions import DmaapClientException +requests.packages.urllib3.disable_warnings() logger = logging.getLogger(__name__) @@ -35,7 +36,7 @@ class IdentityClient: } data = json.JSONEncoder().encode(data) url = self.base_url + "/apiKeys/create" - ret = requests.post(url=url, data=data, headers=headers) + ret = requests.post(url=url, data=data, headers=headers, verify=False) logger.info('create apiKey, response status_code: %s, body: %s', ret.status_code, ret.json()) if ret.status_code != 200: raise DmaapClientException(ret.json()) |