1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-14 19:24:10 +03:00

Bug #2200: Use correct default group quotas

(cherry picked from commit be6c206b4ef76810a4783c4097f794b197baf219)
This commit is contained in:
Carlos Martín 2013-07-23 12:08:24 +02:00
parent 1a70cffab0
commit 83ecfcf721

View File

@ -1189,9 +1189,11 @@ void VirtualMachineResize::request_execute(xmlrpc_c::paramList const& paramList,
Nebula& nd = Nebula::instance();
UserPool* upool = nd.get_upool();
GroupPool* gpool = nd.get_gpool();
Quotas dquotas = nd.get_default_user_quota();
HostPool * hpool = nd.get_hpool();
Quotas user_dquotas = nd.get_default_user_quota();
Quotas group_dquotas = nd.get_default_group_quota();
Host * host;
Template deltas;
@ -1347,7 +1349,7 @@ void VirtualMachineResize::request_execute(xmlrpc_c::paramList const& paramList,
if ( user != 0 )
{
rc = user->quota.quota_update(Quotas::VM, &deltas, dquotas, error_str);
rc = user->quota.quota_update(Quotas::VM, &deltas, user_dquotas, error_str);
if (rc == false)
{
@ -1378,7 +1380,7 @@ void VirtualMachineResize::request_execute(xmlrpc_c::paramList const& paramList,
if ( group != 0 )
{
rc = group->quota.quota_update(Quotas::VM, &deltas, dquotas, error_str);
rc = group->quota.quota_update(Quotas::VM, &deltas, group_dquotas, error_str);
if (rc == false)
{