Add SSL support to utils.generate_glance_url().

Since glance now supports SSL, we need to take
this into consideration when generating the URL.
Also updates and adds a test.

A new config option 'glance_protocol' was added
that defaults to 'http' since that's what the
glance options, '*_client_protocol', default to.
Set to 'https' for SSL.

Change-Id: Id231a1fd4c4d8e221ae0cf6541181e5572dff02b
This commit is contained in:
Josh Kearney
2012-11-26 13:06:10 -06:00
parent a6d8554fa3
commit eae906f8a8
4 changed files with 21 additions and 7 deletions
+2 -1
View File
@@ -37,7 +37,8 @@
<jmckenty@gmail.com> <jmckenty@yyj-dhcp171.corp.flock.com>
<jmckenty@gmail.com> <joshua.mckenty@nasa.gov>
<johannes.erdfelt@rackspace.com> <johannes@compute3.221.st>
<josh@jk0.org> <josh.kearney@rackspace.com>
<josh.kearney@pistoncloud.com> <josh.kearney@rackspace.com>
<josh.kearney@pistoncloud.com> <josh@jk0.org>
<justin@fathomdb.com> <justinsb@justinsb-desktop>
<kshileev@gmail.com> <kshileev@griddynamics.com>
<lorin@nimbisservices.com> <lorin@isi.edu>