Commit c325b33a authored by Kostas Vogias's avatar Kostas Vogias Committed by Stavros Sachtouris

Allow IGNORE_SSL, don't stop if not declared

parent b14bce48
......@@ -31,16 +31,21 @@ from kamaki.clients.astakos import AstakosClient
from kamaki.clients.cyclades import (
CycladesComputeClient, CycladesNetworkClient, CycladesBlockStorageClient)
from kamaki.clients.utils import https
from soi.config import AUTH_URL, CA_CERTS, IGNORE_SSL
import webob.exc
from soi.config import AUTH_URL, CA_CERTS
# endpoints are offered auth-free, so no need for an admin token
ADMIN_TOKEN = ''
https.patch_with_certs(CA_CERTS)
try:
from soi.config import IGNORE_SSL
if IGNORE_SSL:
https.patch_ignore_ssl()
except ImportError:
pass
if IGNORE_SSL:
https.patch_ignore_ssl()
import webob.exc
# endpoints are offered auth-free, so no need for an admin token
ADMIN_TOKEN = ''
auth = AstakosClient(AUTH_URL, ADMIN_TOKEN)
endpoints = {'identity': AUTH_URL}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment