Stop altering the glance API URL
Horizon should treat the glance API endpoint URL the way it treats other API endpoint URLs. Horizon should trust that the retrieved URL is correct, and let the python-glanceclient use the URL. Change-Id: Ie6230b1e4b90f686c8a7ab7368944b6c3412b284 Closes-Bug: 1188182
This commit is contained in:
parent
41a9bba503
commit
641c7da63b
@ -25,7 +25,6 @@ import logging
|
||||
import thread
|
||||
|
||||
from django.conf import settings
|
||||
import six.moves.urllib.parse as urlparse
|
||||
|
||||
import glanceclient as glance_client
|
||||
|
||||
@ -38,8 +37,7 @@ LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def glanceclient(request):
|
||||
o = urlparse.urlparse(base.url_for(request, 'image'))
|
||||
url = "://".join((o.scheme, o.netloc))
|
||||
url = base.url_for(request, 'image')
|
||||
insecure = getattr(settings, 'OPENSTACK_SSL_NO_VERIFY', False)
|
||||
cacert = getattr(settings, 'OPENSTACK_SSL_CACERT', None)
|
||||
LOG.debug('glanceclient connection created using token "%s" and url "%s"'
|
||||
|
Loading…
x
Reference in New Issue
Block a user