Commit fa8322ce authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

Add setting ignore_ssl

parent ff0537dc
......@@ -12,9 +12,6 @@ from kamaki.clients.astakos import AstakosClient
from kamaki.clients.pithos import PithosClient
from kamaki.clients.utils import https
#### TODO: handle this
https.patch_ignore_ssl()
logger = logging.getLogger(__name__)
......@@ -36,6 +33,10 @@ class SyncerSettings():
self.auth_url = auth_url
self.auth_token = auth_token
self.container = container
self.ignore_ssl = kwargs.get("ignore_ssl", False)
if self.ignore_ssl:
https.patch_ignore_ssl()
self.endpoint = self._get_pithos_client(
auth_url, auth_token, container)
......
......@@ -319,12 +319,13 @@ class FileSyncer(object):
# deleted = master_deleted.intersection(client_deleted)
def conf(instance, auth_url, auth_token, container, local_root_path):
def conf(instance, auth_url, auth_token, container, local_root_path, **kwargs):
settings = SyncerSettings(instance=instance,
auth_url=auth_url,
auth_token=auth_token,
container=container,
local_root_path=local_root_path)
local_root_path=local_root_path,
**kwargs)
master = PithosFileClient(settings)
slave = LocalfsFileClient(settings)
return FileSyncer(settings, master, slave)
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