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

Feature #1112: RMVMachine save as method: solve image left with its mutex locked, remove PUBLIC att. from new template

This commit is contained in:
Carlos Martín 2012-03-06 16:31:12 +01:00
parent cefe51b38b
commit a48d204b3e

View File

@ -451,7 +451,9 @@ void VirtualMachineSaveDisk::request_execute(xmlrpc_c::paramList const& paramLis
// Get the data of the Image to be saved
// -------------------------------------------------------------------------
if ( (img = ipool->get(iid_orig, true)) != 0 )
img = ipool->get(iid_orig, true);
if ( img == 0 )
{
failure_response(NO_EXISTS,
get_error(object_name(PoolObjectSQL::IMAGE), iid_orig),
@ -493,7 +495,6 @@ void VirtualMachineSaveDisk::request_execute(xmlrpc_c::paramList const& paramLis
ostringstream oss;
oss << "NAME = \"" << img_name << "\"" << endl;
oss << "PUBLIC = NO" << endl;
oss << "SIZE = " << size << endl;
oss << "FS_TYPE = save_as" << endl;