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
This commit is contained in:
hayderimran7 2016-02-04 23:48:16 -08:00 committed by Andrey Pavlov
parent 907a749b46
commit 4c8efa97d1
1 changed files with 2 additions and 0 deletions

View File

@ -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)