mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-18 19:02:53 +09:00
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:
1 parent
dbebf6a10e
commit
4d8967deaf
2 files changed
+8
-2
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user