Skip to content

Commit 8117256

Browse files
committed
Correct display of project/tenant id on display of credentials
This change corrects the display of ec2 credentails within the ListEC2Creds method. Added explicit headers and corrected data listt o specify tenant_id instead of project id. Change-Id: I2ea579082bee800d774f202bdc38e2d546e57e77 Closes-Bug: #1292337
1 parent 0c0803d commit 8117256

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎openstackclient/identity/v2_0/ec2creds.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,11 @@ def take_action(self, parsed_args):
135135
# Get the user from the current auth
136136
user = identity_client.auth_user_id
137137

138-
columns = ('Access', 'Secret', 'Project ID', 'User ID')
138+
columns = ('access', 'secret', 'tenant_id', 'user_id')
139+
column_headers = ('Access', 'Secret', 'Project ID', 'User ID')
139140
data = identity_client.ec2.list(user)
140-
return (columns,
141+
142+
return (column_headers,
141143
(utils.get_item_properties(
142144
s, columns,
143145
formatters={},

0 commit comments

Comments
 (0)