From d3b87d7795356d3c4e4b6f578a1f426a74f9afbd Mon Sep 17 00:00:00 2001 From: Dean Troyer Date: Wed, 7 Jan 2015 22:01:21 -0600 Subject: Add version url config workaround This subclasses KSC's generic Password plugin to allow version discovery with default Keystone configurations that leave admin_endpoint and public_endpoint at the default values (http://localhost:xxxx). This patch copies the scheme and netloc from the original auth_url into the URL returned from version discovery if the returned netloc begins with 'localhost'. Due to the specific nature of this review, the Keystone team is not inclned to include it in keystoneclient so it is addressed here. Closes-bug: #1410364 Change-Id: I877fe74d86aab3a63122a07b77d1302a007f5b30 --- setup.cfg | 1 + 1 file changed, 1 insertion(+) (limited to 'setup.cfg') diff --git a/setup.cfg b/setup.cfg index 8d4e1c50..cf3daeee 100644 --- a/setup.cfg +++ b/setup.cfg @@ -29,6 +29,7 @@ console_scripts = keystoneclient.auth.plugin = token_endpoint = openstackclient.api.auth:TokenEndpoint + osc_password = openstackclient.api.auth:OSCGenericPassword openstack.cli = command_list = openstackclient.common.module:ListCommand -- cgit v1.2.1