mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +03:00
F #1377: Fix minor bugs
This commit is contained in:
parent
bcef0bef0f
commit
e8b8e2021e
@ -72,13 +72,13 @@ void AuthRequest::add_auth(Operation op,
|
||||
|
||||
if ( uid == 0 || gids.count( GroupPool::ONEADMIN_ID ) == 1 )
|
||||
{
|
||||
lock = aclm->oneadmin_authorize(ob_perms, op);
|
||||
auth = lock;
|
||||
auth = aclm->oneadmin_authorize(ob_perms, op);
|
||||
lock = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
lock = false;
|
||||
auth = aclm->authorize(uid, gids, ob_perms, op);
|
||||
lock = false;
|
||||
}
|
||||
|
||||
oss << auth; // Store the ACL authorization result in the request
|
||||
|
@ -203,10 +203,10 @@ Request::ErrorCode VMTemplateClone::clone(int source_id, const string &name,
|
||||
{
|
||||
NebulaLog::log("ReM",Log::ERROR,failure_message(ec,img_att));
|
||||
|
||||
img_delete.request_execute(img_id, img_att);
|
||||
|
||||
att.resp_msg = "Failed to clone images: " + img_att.resp_msg;
|
||||
|
||||
img_delete.request_execute(new_img_id, img_att);
|
||||
|
||||
goto error_images;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user