diff --git a/cloudkittydashboard/api/cloudkitty.py b/cloudkittydashboard/api/cloudkitty.py index 56785ca..0fa26c9 100644 --- a/cloudkittydashboard/api/cloudkitty.py +++ b/cloudkittydashboard/api/cloudkitty.py @@ -29,6 +29,7 @@ def cloudkittyclient(request): cacert = getattr(settings, 'OPENSTACK_SSL_CACERT', None) insecure = getattr(settings, 'OPENSTACK_SSL_NO_VERIFY', False) auth_url = getattr(settings, 'OPENSTACK_KEYSTONE_URL', None) + interface = getattr(settings, 'OPENSTACK_ENDPOINT_TYPE', 'publicURL') auth = Token( auth_url, token=request.user.token.id, @@ -38,6 +39,7 @@ def cloudkittyclient(request): adapter_options = { 'region_name': request.user.services_region, + 'interface': interface, } return ck_client.Client( diff --git a/releasenotes/notes/keystone-endpoint-type-b5646c052e65c848.yaml b/releasenotes/notes/keystone-endpoint-type-b5646c052e65c848.yaml new file mode 100644 index 0000000..e552146 --- /dev/null +++ b/releasenotes/notes/keystone-endpoint-type-b5646c052e65c848.yaml @@ -0,0 +1,6 @@ +--- +upgrade: + - | + The CloudKitty dashboard now inherits the interface type from Horizon. + This allows for easier testing, like in an all-in-one to use the + internalURL.