diff options
author | Stuart McLaren <stuart.mclaren@hp.com> | 2014-04-03 09:58:31 +0000 |
---|---|---|
committer | Stuart McLaren <stuart.mclaren@hp.com> | 2014-06-25 13:45:46 +0000 |
commit | 6626f38cda3ba5af787c4380cf96d4f49034cefd (patch) | |
tree | b5a84c8d27e13dc1bfd1f17b23b7d27bd827c7a4 /setup.cfg | |
parent | dbefc1a3b11a44143a5bf5976eb118107658a134 (diff) | |
download | python-glanceclient-6626f38cda3ba5af787c4380cf96d4f49034cefd.tar.gz |
Fix CA certificate handling
If --os-cacert was passed to the cli the following error was
triggered: "cafile must be None or a byte string". This is
because 'load_verify_locations' requires a byte string to
be passed in.
We fix this by explicitly converting the argument to a byte
string.
We do this in 'VerifiedHTTPSConnection' rather than sooner, eg
during arg handling, as it will no longer be required should we
move to a different http library (eg requests).
Fixes bug 1301849.
Change-Id: I9014f5d040cae9f0b6f03d8f13de8419597560cb
Diffstat (limited to 'setup.cfg')
0 files changed, 0 insertions, 0 deletions