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:
parent
cefe51b38b
commit
a48d204b3e
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user