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

bug - : Move set of SAVE attribute for SAVE_AS DISKS

This commit is contained in:
Ruben S. Montero 2012-10-25 21:58:20 +02:00
parent 99a8f2093b
commit d48513699f

View File

@ -1685,8 +1685,6 @@ int VirtualMachine::get_image_from_disk(int disk_id, string& error_str)
goto error_image_id;
}
disk->replace("SAVE", "YES");
return iid;
}
}
@ -1758,6 +1756,8 @@ int VirtualMachine::save_disk(const string& disk_id,
oss << (img_id);
disk->replace("SAVE_AS", oss.str());
disk->replace("SAVE", "YES");
break;
}
}