Skip to content

Commit ce17a0b

Browse files
author
Steve Martinelli
committed
Remove 'oauth authorization show' function from identity v3
Remove the mentioned function since I removed it in the client. Change-Id: I45e713a1cdad92d257b895adfaa269404be6e6d8
1 parent 661da45 commit ce17a0b

2 files changed

Lines changed: 0 additions & 25 deletions

File tree

‎openstackclient/identity/v3/oauth.py‎

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -346,30 +346,6 @@ def take_action(self, parsed_args):
346346
return
347347

348348

349-
class ShowAuthorizationPin(show.ShowOne):
350-
"""Show Authorization pin command"""
351-
352-
log = logging.getLogger(__name__ + '.ShowAuthorizationPin')
353-
354-
def get_parser(self, prog_name):
355-
parser = super(ShowAuthorizationPin, self).get_parser(prog_name)
356-
parser.add_argument(
357-
'request_id',
358-
metavar='<request-id>',
359-
help='Show pin for request token',
360-
)
361-
return parser
362-
363-
def take_action(self, parsed_args):
364-
self.log.debug('take_action(%s)' % parsed_args)
365-
identity_client = self.app.client_manager.identity
366-
data = identity_client.oauth.get_authorization_pin(
367-
parsed_args.request_id)
368-
info = {}
369-
info.update(data._info)
370-
return zip(*sorted(six.iteritems(info)))
371-
372-
373349
class ShowConsumer(show.ShowOne):
374350
"""Show consumer command"""
375351

‎setup.cfg‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ openstack.identity.v3 =
113113
oauth_request_token_create = openstackclient.identity.v3.oauth:CreateRequestToken
114114
oauth_authorization_delete = openstackclient.identity.v3.oauth:DeleteUserAuthorization
115115
oauth_authorization_list = openstackclient.identity.v3.oauth:ListUserAuthorizations
116-
oauth_authorization_show = openstackclient.identity.v3.oauth:ShowAuthorizationPin
117116

118117
policy_create = openstackclient.identity.v3.policy:CreatePolicy
119118
policy_delete = openstackclient.identity.v3.policy:DeletePolicy

0 commit comments

Comments
 (0)