From cd368bb81690af5b4e99c0fd71b35fb00c9e0786 Mon Sep 17 00:00:00 2001 From: Dean Troyer Date: Mon, 20 Oct 2014 12:47:39 -0500 Subject: Fix token issue after auth changeup IssueToken.take_action() was missed in updating the structure of the ClientManager. Also, TOKEN_WITH_TENANT_ID in v3 is just wrong... Closes-Bug: #1383396 Change-Id: If2dd82a26af1d743ee9df73e0c1aebce497bf22e --- openstackclient/identity/v3/token.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'openstackclient/identity') diff --git a/openstackclient/identity/v3/token.py b/openstackclient/identity/v3/token.py index aca5c669..5b09b69f 100644 --- a/openstackclient/identity/v3/token.py +++ b/openstackclient/identity/v3/token.py @@ -159,9 +159,7 @@ class IssueToken(show.ShowOne): def take_action(self, parsed_args): self.log.debug('take_action(%s)', parsed_args) - session = self.app.client_manager.identity.session - - token = session.auth.auth_ref.service_catalog.get_token() + token = self.app.client_manager.auth_ref.service_catalog.get_token() if 'tenant_id' in token: token['project_id'] = token.pop('tenant_id') return zip(*sorted(six.iteritems(token))) -- cgit v1.2.1