F #5422: Add csv option to onevcenter

This commit is contained in:
Tino Vazquez committed 2021-09-14 13:24:51 +02:00
1 parent bf630b4606
commit 04a01737b1
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -195,7 +195,7 @@ class OneVcenterHelper < OpenNebulaHelper::OneHelper
show_header(vcenter_host)
table.show(list)
table.show(list, _options)
end
# handles :cli section of TABLE
+2 -1
View File
@@ -165,7 +165,8 @@ CommandParser::CmdParser.new(ARGV) do
command :list,
list_desc,
:options => [OBJECT, HOST, DATASTORE, VCENTER, USER, PASS] do
:options => [OBJECT, HOST, DATASTORE, VCENTER, USER, PASS,
CLIHelper::CSV_OPT] do
begin
args = helper.parse_opts(options)
args[:filter] = true