1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

Feature #1288: Fix bug introduced in commit:77452c86, quotas were only checked for the first image or vnet found

(cherry picked from commit 564502fe6a3d85877be59c36fa6980f5d3da5e0c)
This commit is contained in:
Carlos Martín 2012-07-04 18:18:39 +02:00
parent dbebf6a10e
commit 4d8967deaf
2 changed files with 8 additions and 2 deletions

View File

@ -53,7 +53,10 @@ bool QuotaImage::check(Template * tmpl, string& error)
if ( !image_id.empty() )
{
return check_quota(image_id, image_request, error);
if ( !check_quota(image_id, image_request, error) )
{
return false;
}
}
}

View File

@ -53,7 +53,10 @@ bool QuotaNetwork::check(Template * tmpl, string& error)
if ( !net_id.empty() )
{
return check_quota(net_id, net_request, error);
if ( !check_quota(net_id, net_request, error) )
{
return false;
}
}
}