Change Credentials header to Blob from data

The payload data of credentials is the unfortunately named blob.
Currently when listing credentials the payload is excluded as OSC is
looking for a column called data which does not exist.

Change-Id: I6fa4579d7ec9ba393ede550191dbd8aa29767bf4
This commit is contained in:
Jamie Lennox 2015-06-01 15:15:20 +10:00 committed by Steve Martinelli
parent dff006c3f6
commit 226fc6c80a

View File

@ -105,9 +105,10 @@ class ListCredential(lister.Lister):
def take_action(self, parsed_args):
self.log.debug('take_action(%s)', parsed_args)
columns = ('ID', 'Type', 'User ID', 'Data', 'Project ID')
columns = ('ID', 'Type', 'User ID', 'Blob', 'Project ID')
column_headers = ('ID', 'Type', 'User ID', 'Data', 'Project ID')
data = self.app.client_manager.identity.credentials.list()
return (columns,
return (column_headers,
(utils.get_item_properties(
s, columns,
formatters={},