summaryrefslogtreecommitdiff
path: root/openstackclient
diff options
context:
space:
mode:
authorChris Johnson <wchrisjohnson@gmail.com>2014-03-21 11:16:25 -0400
committerChris Johnson <wchrisjohnson@gmail.com>2014-03-21 11:22:22 -0400
commit8117256d7dc1464e86382db5c480d33b01131854 (patch)
treefa02db005258731c614e83a2296f704b4e9887e8 /openstackclient
parent0c0803d363aeae9e8a6eb2cdaf4b5baedee416dc (diff)
downloadpython-openstackclient-8117256d7dc1464e86382db5c480d33b01131854.tar.gz
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
Diffstat (limited to 'openstackclient')
-rw-r--r--openstackclient/identity/v2_0/ec2creds.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/openstackclient/identity/v2_0/ec2creds.py b/openstackclient/identity/v2_0/ec2creds.py
index cb3a5165..cb60b677 100644
--- a/openstackclient/identity/v2_0/ec2creds.py
+++ b/openstackclient/identity/v2_0/ec2creds.py
@@ -135,9 +135,11 @@ class ListEC2Creds(lister.Lister):
# Get the user from the current auth
user = identity_client.auth_user_id
- columns = ('Access', 'Secret', 'Project ID', 'User ID')
+ columns = ('access', 'secret', 'tenant_id', 'user_id')
+ column_headers = ('Access', 'Secret', 'Project ID', 'User ID')
data = identity_client.ec2.list(user)
- return (columns,
+
+ return (column_headers,
(utils.get_item_properties(
s, columns,
formatters={},