add backup show command field for freezerclient

The backup show field is not enough, this patch
add more detailed field

Change-Id: I41bab0fb911aca002efd732fc8071aa52c09ff60
This commit is contained in:
gecong1973 2018-10-28 20:11:10 -07:00 committed by gecong
parent 4ab052733d
commit d7515bc935

View File

@ -42,10 +42,16 @@ class BackupShow(show.ShowOne):
column = ( column = (
'Backup ID', 'Backup ID',
'Project ID',
'User ID',
'User name',
'Metadata' 'Metadata'
) )
data = ( data = (
backup.get('backup_uuid'), backup.get('backup_uuid'),
backup.get('project_id'),
backup.get('user_id'),
backup.get('user_name'),
pprint.pformat(backup.get('backup_metadata')) pprint.pformat(backup.get('backup_metadata'))
) )
return column, data return column, data