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:
parent
d346a65b37
commit
b579de801c
@ -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))
|
||||
|
@ -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))
|
||||
|
@ -821,5 +821,4 @@ CommandParser::CmdParser.new(ARGV) do
|
||||
user.disable
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user