Re: [pve-devel] [PATCH v2 storage 1/2] fix #3633: pvesm: use print_api_result

2021-10-21 Thread Dominik Csapak
looks ok, one thing i'd change is to have a custom column order for 'list' and 'status' that resembles the original output (the default order is not really helpful) the 3rd paramter of print_api_result is a list of columns and as an option you can set a 'sort_key' with the index of the column to

[pve-devel] [PATCH v2 storage 1/2] fix #3633: pvesm: use print_api_result

2021-09-27 Thread Lorenz Stechauner
Signed-off-by: Lorenz Stechauner --- PVE/CLI/pvesm.pm | 146 ++- 1 file changed, 18 insertions(+), 128 deletions(-) diff --git a/PVE/CLI/pvesm.pm b/PVE/CLI/pvesm.pm index 190de91..6c0a1b2 100755 --- a/PVE/CLI/pvesm.pm +++ b/PVE/CLI/pvesm.pm @@ -178,68