summaryrefslogtreecommitdiffstats
path: root/vio
diff options
context:
space:
mode:
authorliangke <lokyse@163.com>2017-08-25 14:04:00 +0800
committerliangke <lokyse@163.com>2017-09-11 16:06:18 +0800
commit4b94970eeb32c688d63542d0468130fb8d3953e9 (patch)
treee3946b4780da0c974d38c8f8bed0b78f2bb53c93 /vio
parent146a18adf027664603444db6a2d9db6003f19c38 (diff)
Ignore verifying the SSL certificate
1 We do not use self-signed ceritficate by default and do not need ssl verification 2 Modify code style for passing pep8 checking Change-Id: I822512e67e6a70ccf11221791a5911b93673d060 Issue-Id: MULTICLOUD-55 Signed-off-by: liangke <lokyse@163.com>
Diffstat (limited to 'vio')
-rw-r--r--vio/vio/swagger/views/proxyplugin/identity/views.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/vio/vio/swagger/views/proxyplugin/identity/views.py b/vio/vio/swagger/views/proxyplugin/identity/views.py
index 35abc4e..cee11e7 100644
--- a/vio/vio/swagger/views/proxyplugin/identity/views.py
+++ b/vio/vio/swagger/views/proxyplugin/identity/views.py
@@ -93,7 +93,7 @@ class TokenView(BaseClient):
logger.info("vimid(%(vimid)s) get keystone url %(url)s ",
{"vimid": vimid, "url": keystoneURL})
try:
- res = requests.get(url=keystoneURL)
+ res = requests.get(url=keystoneURL, verify=False)
if res.status_code != status.HTTP_200_OK:
return Response(data={"error": res.content},
status=res.status_code)
@@ -148,8 +148,8 @@ class TokenView(BaseClient):
{"vimid": vimid, "url": url})
try:
- res = requests.post(url=url, data=json.dumps(
- create_req), headers=headers)
+ res = requests.post(url=url, data=json.dumps(create_req),
+ headers=headers, verify=False)
if res.status_code != status.HTTP_201_CREATED:
return Response(data={"error": res.content},
status=res.status_code)