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

(cherry picked from commit 564502fe6a)
This commit is contained in:
Carlos Martín committed 2012-07-04 18:20:02 +02:00
1 parent dbebf6a10e
commit 4d8967deaf
2 files changed
+8 -2

No files matched your search

+4 -1
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;
}
}
}
+4 -1
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;
}
}
}