From b579de801c9ba302df5a0c707de267b05f315db6 Mon Sep 17 00:00:00 2001 From: Alejandro Huertas Herrero Date: Mon, 18 Jan 2021 18:31:22 +0100 Subject: [PATCH] L #-: Fix CLI linting (#663) --- src/cli/oneacct | 2 ++ src/cli/oneshowback | 2 ++ src/cli/oneuser | 1 - 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cli/oneacct b/src/cli/oneacct index 0a98c5e161..a691a89ad8 100755 --- a/src/cli/oneacct +++ b/src/cli/oneacct @@ -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)) diff --git a/src/cli/oneshowback b/src/cli/oneshowback index 777b486a2e..078e9affa8 100755 --- a/src/cli/oneshowback +++ b/src/cli/oneshowback @@ -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)) diff --git a/src/cli/oneuser b/src/cli/oneuser index 58013069b4..2279751b3a 100755 --- a/src/cli/oneuser +++ b/src/cli/oneuser @@ -821,5 +821,4 @@ CommandParser::CmdParser.new(ARGV) do user.disable end end - end