1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

Bug #804: Fix core unit tests

This commit is contained in:
Carlos Martín 2011-09-16 15:51:28 +02:00
parent da07254da7
commit 32421690f3

View File

@ -589,7 +589,7 @@ public:
Image * img;
VectorAttribute * disk;
int oid_0, oid_1, index;
int oid_0, oid_1, index, img_id;
string value;
Image::ImageType img_type;
@ -625,7 +625,7 @@ public:
disk = new VectorAttribute("DISK");
disk->replace("IMAGE_ID", "0");
((ImagePool*)imp)->disk_attribute(disk, 0, &index, &img_type,0);
((ImagePool*)imp)->disk_attribute(disk, 0, &index, &img_type,0, img_id);
value = "";
value = disk->vector_value("TARGET");
@ -639,7 +639,7 @@ public:
disk = new VectorAttribute("DISK");
disk->replace("IMAGE_ID", "1");
((ImagePool*)imp)->disk_attribute(disk, 0, &index, &img_type,0);
((ImagePool*)imp)->disk_attribute(disk, 0, &index, &img_type,0, img_id);
value = "";
value = disk->vector_value("TARGET");