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