From c6e97cf8d5de03f2e1bebfd607ee0ca83114c062 Mon Sep 17 00:00:00 2001 From: Alejandro Huertas Herrero Date: Thu, 11 Mar 2021 16:47:31 +0100 Subject: [PATCH] B #4974: remove CLI extra columns (#951) --- src/cli/cli_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/cli_helper.rb b/src/cli/cli_helper.rb index b9c0fb32f2..7b52a7b77c 100644 --- a/src/cli/cli_helper.rb +++ b/src/cli/cli_helper.rb @@ -357,14 +357,14 @@ module CLIHelper # @param options [Hash] Object with CLI user options # @param top [Boolean] True to not update columns again def show(data, options = {}, top = false) + update_columns(options) unless top + if options[:list] @cli_columns = options[:list].collect {|o| o.upcase.to_sym } else @cli_columns = @default_columns end - update_columns(options) unless top - if data.is_a? Hash @data = data