From 11060d3ed0a28dc1754cafdddb68bb4dd3f24caf Mon Sep 17 00:00:00 2001 From: gecong1973 Date: Mon, 5 Nov 2018 23:28:09 -0800 Subject: [PATCH] add action show command field for client v1 action show command field is not enough, this patch add more detailed field for v1. Change-Id: I080b9454fbbbbd588ce1a1eb7ae5177b39a82239 --- freezerclient/v1/actions.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/freezerclient/v1/actions.py b/freezerclient/v1/actions.py index 0e70b0f..f54c35e 100644 --- a/freezerclient/v1/actions.py +++ b/freezerclient/v1/actions.py @@ -46,7 +46,13 @@ 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' ) data = ( @@ -57,6 +63,12 @@ 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', ''), ) return column, data