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

Fix onegroup quota printing

This commit is contained in:
Javi Fontan 2014-03-10 16:47:42 +01:00
parent 1ce0367386
commit f3283eb38e

View File

@ -114,7 +114,7 @@ class OneGroupHelper < OpenNebulaHelper::OneHelper
limit = q['VM_QUOTA']['VM']["VMS"]
if limit == "-1"
limit = pool_default_quotas["#{prefix}VM_QUOTA/VM/VMS"]
limit = pool_default_quotas("VM_QUOTA/VM/VMS")
limit = "0" if limit.nil? || limit == ""
end
@ -131,7 +131,7 @@ class OneGroupHelper < OpenNebulaHelper::OneHelper
limit = q['VM_QUOTA']['VM']["MEMORY"]
if limit == "-1"
limit = pool_default_quotas["#{prefix}VM_QUOTA/VM/MEMORY"]
limit = pool_default_quotas("VM_QUOTA/VM/MEMORY")
limit = "0" if limit.nil? || limit == ""
end
@ -149,7 +149,7 @@ class OneGroupHelper < OpenNebulaHelper::OneHelper
limit = q['VM_QUOTA']['VM']["CPU"]
if limit == "-1"
limit = pool_default_quotas["#{prefix}VM_QUOTA/VM/CPU"]
limit = pool_default_quotas("VM_QUOTA/VM/CPU")
limit = "0" if limit.nil? || limit == ""
end