From 9849631493af2f77371b42a2738251d785561bb6 Mon Sep 17 00:00:00 2001 From: Alejandro Huertas Herrero Date: Tue, 4 Jun 2019 14:41:37 +0200 Subject: [PATCH] F #688: fix bug in CLI top (#3402) --- src/cli/cli_helper.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/cli/cli_helper.rb b/src/cli/cli_helper.rb index 49c049f269..270ae2e4dc 100644 --- a/src/cli/cli_helper.rb +++ b/src/cli/cli_helper.rb @@ -329,10 +329,11 @@ module CLIHelper # Show resource # - # @param data [Hash/Object] Data to show + # @param data [Hash/Object] Data to show # @param options [Hash] Object with CLI user options - def show(data, options = {}) - update_columns(options) + # @param top [Boolean] True to not update columns again + def show(data, options = {}, top = false) + update_columns(options) unless top if data.is_a? Hash @data = data @@ -374,7 +375,7 @@ module CLIHelper CLIHelper.scr_cls CLIHelper.scr_move(0, 0) - show(data, options) + show(data, options, true) sleep delay end