mirror of
https://github.com/OpenNebula/one.git
synced 2025-04-01 06:50:25 +03:00
Fix wrong conflict resolution
This commit is contained in:
parent
727826b0a8
commit
b3316ed944
@ -262,7 +262,7 @@ void ImageClone::request_execute(
|
||||
|
||||
// -------------------------- Check Quotas ----------------------------
|
||||
|
||||
if ( quota_authorization(&img_usage, Quotas::IMAGE, att) == false )
|
||||
if ( quota_authorization(&img_usage, Quotas::DATASTORE, att) == false )
|
||||
{
|
||||
delete tmpl;
|
||||
return;
|
||||
@ -283,7 +283,7 @@ void ImageClone::request_execute(
|
||||
error_str);
|
||||
if ( rc < 0 )
|
||||
{
|
||||
quota_rollback(&img_usage, Quotas::IMAGE, att);
|
||||
quota_rollback(&img_usage, Quotas::DATASTORE, att);
|
||||
|
||||
failure_response(INTERNAL, allocate_error(error_str), att);
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user