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

Bug #2300: Fix users column in onegroup list

This commit is contained in:
Carlos Martín 2013-09-03 16:09:15 +02:00
parent dcf019f91b
commit 3075306915

View File

@ -61,10 +61,15 @@ class OneGroupHelper < OpenNebulaHelper::OneHelper
end
column :USERS, "Number of Users in this group", :size=>5 do |d|
if d["USERS"]["ID"].nil?
"0"
ids = d["USERS"]["ID"]
case ids
when String
"1"
when Array
ids.size
else
d["USERS"]["ID"].size
"0"
end
end