From c14729e5220e35ed71fadf13df29c0868b9b861a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Czern=C3=BD?= Date: Tue, 22 Feb 2022 15:46:25 +0100 Subject: [PATCH] B #4974: remove CLI extra columns (#951) (#1801) Co-authored-by: Alejandro Huertas Herrero --- 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 a0f80bcaa4..26e2088ef4 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