mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
Co-authored-by: Alejandro Huertas Herrero <ahuertas@opennebula.systems>
This commit is contained in:
parent
5f48b32d65
commit
c14729e522
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user