1
0
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:
Ruben S. Montero 2011-11-12 23:38:30 +01:00
parent 34cb7a19be
commit 0b417d6eb1

View File

@ -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();