From 5de748e51997db8ee90b65aff6f4e9a3fd20bf1a Mon Sep 17 00:00:00 2001
From: Nikos Skalkotos <skalkoto@grnet.gr>
Date: Mon, 20 Oct 2014 17:58:34 +0300
Subject: [PATCH] kamaki: ignore ssl certificates

Support kamaki 0.13rc5. From this version on, kamaki uses ssl
certificates by default. For now, instruct kamaki to ignore the
certificates.
---
 image_creator/kamaki_wrapper.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/image_creator/kamaki_wrapper.py b/image_creator/kamaki_wrapper.py
index 4f548a0..38950ae 100644
--- a/image_creator/kamaki_wrapper.py
+++ b/image_creator/kamaki_wrapper.py
@@ -30,6 +30,12 @@ from kamaki.clients.image import ImageClient
 from kamaki.clients.pithos import PithosClient
 from kamaki.clients.astakos import CachedAstakosClient as AstakosClient
 
+try:
+    from kamaki.clients.utils import https
+    https.patch_ignore_ssl()
+except ImportError:
+    pass
+
 try:
     config = Config()
 except Exception as e:
-- 
GitLab