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:
parent
31d4b65d38
commit
16915c4326
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user