1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

F #688: fix bug in CLI top (#3402)

This commit is contained in:
Alejandro Huertas Herrero 2019-06-04 14:41:37 +02:00 committed by Ruben S. Montero
parent 77417daa2e
commit 9849631493

View File

@ -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