mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-02 05:06:14 +09:00
1 parent
ebb91e5789
commit
c6e97cf8d5
1 file changed
+2
-2
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user