From 4c8efa97d192f27a3754a52f878920f96838ed30 Mon Sep 17 00:00:00 2001 From: hayderimran7 Date: Thu, 4 Feb 2016 23:48:16 -0800 Subject: [PATCH] Fix botoclient for non-ssl based functional tests Botocore by default sets Verify = True however, if user wants to skip it,by not providing ca file then the code doesnt set Verify=False in order to make boto skip verification of ssl cert. This was revealed when performing local testing of ec2api functional tests against a https based openstack deployment. We kept getting ssl cert failed error until i applied this patch and it worked . Change-Id: Ia6adc92a5ec6a76db6079d8b289e073901974cd8 --- botocoreclient.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/botocoreclient.py b/botocoreclient.py index ca23c0b..3415dc6 100644 --- a/botocoreclient.py +++ b/botocoreclient.py @@ -30,6 +30,8 @@ def _get_client(client_name, url, region, access, secret, ca_bundle): } if ca_bundle: kwargs['verify'] = ca_bundle + else: + kwargs['verify'] = False return session.create_client(client_name, **kwargs)