mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-19 06:50:07 +03:00
feature #966: Bug returning the id of the acquired image
This commit is contained in:
parent
34cb7a19be
commit
0b417d6eb1
@ -224,7 +224,7 @@ int ImagePool::disk_attribute(VectorAttribute * disk,
|
||||
return -1;
|
||||
}
|
||||
|
||||
img = imagem->acquire_image(source , uiid);
|
||||
img = imagem->acquire_image(source, uiid);
|
||||
|
||||
if ( img == 0 )
|
||||
{
|
||||
@ -275,6 +275,8 @@ int ImagePool::disk_attribute(VectorAttribute * disk,
|
||||
{
|
||||
img->disk_attribute(disk, index, img_type);
|
||||
|
||||
image_id = img->get_oid();
|
||||
|
||||
update(img);
|
||||
|
||||
img->unlock();
|
||||
|
Loading…
x
Reference in New Issue
Block a user