upstream/openstack/python-horizon/centos/files/0001-Remove-the-hard-coded-internal-URL-for-keystone.patch
Tee Ngo d5f2693324 Remove hardcoded endpoint type for keystone
In this commit, Horizon in upstream repo is patched to
remove the hardcoded endpoint type for keystone so that
the default endpoint type specified in settings
(OPENSTACK_ENDPOINT_TYPE) can take effect uniformly across
all services. This change is also required in order to
support intercloud communications securely and uniformly
over mgmt interface via amdin endpoint type.

Story: 2007347
Task: 39464
Change-Id: I56c1aa36ca55360c23f81d4e2b8d15a325617f50
Signed-off-by: Tee Ngo <tee.ngo@windriver.com>
2020-04-17 19:32:16 -04:00

16 lines
618 B
Diff

index 65706bf..4ddc256 100644
--- a/openstack_dashboard/api/keystone.py
+++ b/openstack_dashboard/api/keystone.py
@@ -93,7 +93,7 @@ class Service(base.APIDictWrapper):
super(Service, self).__init__(service, *args, **kwargs)
self.public_url = base.get_url_for_service(service, region,
'publicURL')
- self.url = base.get_url_for_service(service, region, 'internalURL')
+ self.url = base.get_url_for_service(service, region)
if self.url:
self.host = urlparse.urlparse(self.url).hostname
else:
--
1.8.3.1