1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

B #4974: remove CLI extra columns (#951) (#1801)

Co-authored-by: Alejandro Huertas Herrero <ahuertas@opennebula.systems>
This commit is contained in:
Pavel Czerný 2022-02-22 15:46:25 +01:00 committed by GitHub
parent 5f48b32d65
commit c14729e522
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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