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:
parent
dbebf6a10e
commit
4d8967deaf
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user