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:
parent
dcf019f91b
commit
3075306915
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user