Skip to content

Commit 25d6955

Browse files
committed
Change the token verb to issue/revoke
Change the token verb to issue/revoke as documented in: https://wiki.openstack.org/wiki/OpenStackClient/Commands#token https://wiki.openstack.org/wiki/OpenStackClient/Commands#Actions Change-Id: I44f77f98ad3269c4f2149301c204804dcb75ac81
1 parent d6321c0 commit 25d6955

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎openstackclient/identity/v2_0/token.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424

2525
class CreateToken(show.ShowOne):
26-
"""Create token command"""
26+
"""Issue token command"""
2727

2828
log = logging.getLogger(__name__ + '.CreateToken')
2929

@@ -40,7 +40,7 @@ def take_action(self, parsed_args):
4040

4141

4242
class DeleteToken(command.Command):
43-
"""Delete token command"""
43+
"""Revoke token command"""
4444

4545
log = logging.getLogger(__name__ + '.DeleteToken')
4646

‎openstackclient/identity/v3/token.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def take_action(self, parsed_args):
186186

187187

188188
class CreateToken(show.ShowOne):
189-
"""Create token command"""
189+
"""Issue token command"""
190190

191191
log = logging.getLogger(__name__ + '.CreateToken')
192192

‎setup.cfg‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ openstack.identity.v2_0 =
151151
service_list =openstackclient.identity.v2_0.service:ListService
152152
service_show =openstackclient.identity.v2_0.service:ShowService
153153

154-
token_create =openstackclient.identity.v2_0.token:CreateToken
155-
token_delete =openstackclient.identity.v2_0.token:DeleteToken
154+
token_issue =openstackclient.identity.v2_0.token:CreateToken
155+
token_revoke =openstackclient.identity.v2_0.token:DeleteToken
156156

157157
user_role_list = openstackclient.identity.v2_0.role:ListUserRole
158158

@@ -236,7 +236,7 @@ openstack.identity.v3 =
236236
service_show = openstackclient.identity.v3.service:ShowService
237237
service_set = openstackclient.identity.v3.service:SetService
238238

239-
token_create = openstackclient.identity.v3.token:CreateToken
239+
token_issue = openstackclient.identity.v3.token:CreateToken
240240

241241
user_create = openstackclient.identity.v3.user:CreateUser
242242
user_delete = openstackclient.identity.v3.user:DeleteUser

0 commit comments

Comments
 (0)