mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 03:12:55 +09:00
Add SAVED_TEMPLATE_ID to saved template when saving a disk
This commit is contained in:
1 parent
0f969c97a0
commit
0fd6518a13
1 file changed
+6
@@ -1387,6 +1387,12 @@ void VirtualMachineSaveDisk::request_execute(xmlrpc_c::paramList const& paramLis
|
||||
tmpl->erase("NAME");
|
||||
tmpl->set(new SingleAttribute("NAME",tmpl_name.str()));
|
||||
|
||||
tmpl_name.str("");
|
||||
tmpl_name << tid;
|
||||
|
||||
tmpl->erase("SAVED_TEMPLATE_ID");
|
||||
tmpl->set(new SingleAttribute("SAVED_TEMPLATE_ID",tmpl_name.str()));
|
||||
|
||||
tmpl->replace_disk_image(iid_orig, iname_orig, iuname_orig, img_name, att.uname);
|
||||
|
||||
//Authorize the template creation operation
|
||||
|
||||
Reference in new issue
Block a user