add action show command field for freezerclient

action show command field is not enough, this patch
add more detailed field.

Change-Id: I4796c3fc627ec4f0b14b0c5959e5f1f1d82eb513
This commit is contained in:
gecong1973 2018-10-28 19:02:48 -07:00 committed by gecong
parent 4ab052733d
commit c1f9bf1a03

View File

@ -46,7 +46,14 @@ class ActionShow(show.ShowOne):
'Mode',
'Path to Backup or Restore',
'Storage',
'Snapshot'
'Snapshot',
'Container',
'Log_file',
'Remove_older_than',
'Max_retries_interval',
'Max_retries',
'User_id',
'Project_id'
)
data = (
@ -57,6 +64,13 @@ class ActionShow(show.ShowOne):
action.get('freezer_action', {}).get('path_to_backup', ''),
action.get('freezer_action', {}).get('storage', 'swift'),
action.get('freezer_action', {}).get('snapshot', 'False'),
action.get('freezer_action', {}).get('container', ''),
action.get('freezer_action', {}).get('log_file', ''),
action.get('freezer_action', {}).get('remove_older_than', '365'),
action.get('max_retries_interval', '6'),
action.get('max_retries', '5'),
action.get('user_id', ''),
action.get('project_id', ''),
)
return column, data