|
22 | 22 |
|
23 | 23 |
|
24 | 24 | class AuthorizeRequestToken(show.ShowOne): |
25 | | - """Authorize request token command""" |
| 25 | + """Authorize request token""" |
26 | 26 |
|
27 | 27 | log = logging.getLogger(__name__ + '.AuthorizeRequestToken') |
28 | 28 |
|
@@ -59,7 +59,7 @@ def take_action(self, parsed_args): |
59 | 59 |
|
60 | 60 |
|
61 | 61 | class CreateAccessToken(show.ShowOne): |
62 | | - """Create access token command""" |
| 62 | + """Create access token""" |
63 | 63 |
|
64 | 64 | log = logging.getLogger(__name__ + '.CreateAccessToken') |
65 | 65 |
|
@@ -110,7 +110,7 @@ def take_action(self, parsed_args): |
110 | 110 |
|
111 | 111 |
|
112 | 112 | class CreateRequestToken(show.ShowOne): |
113 | | - """Create request token command""" |
| 113 | + """Create request token""" |
114 | 114 |
|
115 | 115 | log = logging.getLogger(__name__ + '.CreateRequestToken') |
116 | 116 |
|
@@ -148,18 +148,19 @@ def take_action(self, parsed_args): |
148 | 148 | return zip(*sorted(six.iteritems(info))) |
149 | 149 |
|
150 | 150 |
|
151 | | -class CreateToken(show.ShowOne): |
152 | | - """Issue token command""" |
| 151 | +class IssueToken(show.ShowOne): |
| 152 | + """Issue new token""" |
153 | 153 |
|
154 | | - log = logging.getLogger(__name__ + '.CreateToken') |
| 154 | + log = logging.getLogger(__name__ + '.IssueToken') |
155 | 155 |
|
156 | 156 | def get_parser(self, prog_name): |
157 | | - parser = super(CreateToken, self).get_parser(prog_name) |
| 157 | + parser = super(IssueToken, self).get_parser(prog_name) |
158 | 158 | return parser |
159 | 159 |
|
160 | 160 | def take_action(self, parsed_args): |
161 | 161 | self.log.debug('take_action(%s)', parsed_args) |
162 | 162 | identity_client = self.app.client_manager.identity |
| 163 | + |
163 | 164 | token = identity_client.service_catalog.get_token() |
164 | 165 | if 'tenant_id' in token: |
165 | 166 | token['project_id'] = token.pop('tenant_id') |
|
0 commit comments