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

B #687: filter by hidden columns

This commit is contained in:
Alejandro Huertas 2020-05-18 14:17:24 +02:00
parent 7e43c4632a
commit 5b384c1770
No known key found for this signature in database
GPG Key ID: 3044AF06BE405104

View File

@ -571,8 +571,8 @@ module CLIHelper
# @return [Array] Array with selected columns information
def data_array(data, options)
res_data = data.collect do |d|
@default_columns.collect do |c|
@columns[c][:proc].call(d).to_s if @columns[c]
@columns.collect do |_, params|
params[:proc].call(d).to_s
end
end
@ -821,7 +821,7 @@ module CLIHelper
m = s.match(/^(.*?)#{operators}(.*?)$/)
if m
index = @default_columns.index(m[1].to_sym)
index = @columns.keys.index(m[1].to_sym)
if index
{