1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-08 20:58:17 +03:00

Feature #2632: Bug in oneuser/group list

This commit is contained in:
Carlos Martín 2014-01-20 16:25:44 +01:00
parent 31d4b65d38
commit 16915c4326
2 changed files with 4 additions and 0 deletions

View File

@ -69,6 +69,8 @@ class OneGroupHelper < OpenNebulaHelper::OneHelper
quotas_hash = Hash.new quotas_hash = Hash.new
if (!quotas.nil?) if (!quotas.nil?)
quotas = [quotas].flatten
quotas.each do |q| quotas.each do |q|
quotas_hash[q['ID']] = q quotas_hash[q['ID']] = q
end end

View File

@ -155,6 +155,8 @@ class OneUserHelper < OpenNebulaHelper::OneHelper
quotas_hash = Hash.new quotas_hash = Hash.new
if (!quotas.nil?) if (!quotas.nil?)
quotas = [quotas].flatten
quotas.each do |q| quotas.each do |q|
quotas_hash[q['ID']] = q quotas_hash[q['ID']] = q
end end