L #-: Linting actions

* remove underscore prefix for a variable that is being used
* align multi line array values
This commit is contained in:
Tino Vazquez committed 2021-09-14 15:41:16 +02:00
1 parent 121b4b096e
commit e1a48863e9
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -188,14 +188,14 @@ class OneVcenterHelper < OpenNebulaHelper::OneHelper
# This method will print a list for a vcenter_resource.
#
def list_object(_options, list)
def list_object(options, list)
vcenter_host = list.keys[0]
list = cli_format(list.values.first)
table = format_list
show_header(vcenter_host)
table.show(list, _options)
table.show(list, options)
end
# handles :cli section of TABLE
+1 -1
View File
@@ -166,7 +166,7 @@ CommandParser::CmdParser.new(ARGV) do
command :list,
list_desc,
:options => [OBJECT, HOST, DATASTORE, VCENTER, USER, PASS,
CLIHelper::CSV_OPT] do
CLIHelper::CSV_OPT] do
begin
args = helper.parse_opts(options)
args[:filter] = true