1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-23 17:33:56 +03:00

L #-: Fix CLI linting (#663)

This commit is contained in:
Alejandro Huertas Herrero 2021-01-18 18:31:22 +01:00 committed by GitHub
parent d346a65b37
commit b579de801c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View File

@ -109,12 +109,14 @@ CommandParser::CmdParser.new(ARGV) do
puts xml_str
end
else
# rubocop:disable Naming/VariableNumber
order_by = {}
order_by[:order_by_1] = 'VM/UID'
if options[:split] && !options[:csv]
order_by[:order_by_2] = 'VM/ID'
end
# rubocop:enable Naming/VariableNumber
acct_hash = pool.accounting(filter_flag,
common_opts.merge(order_by))

View File

@ -110,11 +110,13 @@ CommandParser::CmdParser.new(ARGV) do
puts xml_str
end
else
# rubocop:disable Naming/VariableNumber
order_by = {}
if !options[:csv]
order_by[:order_by_1] = 'YEAR'
order_by[:order_by_2] = 'MONTH'
end
# rubocop:enable Naming/VariableNumber
data_hash = pool.showback(filter_flag,
common_opts.merge(order_by))

View File

@ -821,5 +821,4 @@ CommandParser::CmdParser.new(ARGV) do
user.disable
end
end
end