Add SAVED_TEMPLATE_ID to saved template when saving a disk

This commit is contained in:
Ruben S. Montero committed 2014-04-07 12:28:15 +02:00
1 parent 0f969c97a0
commit 0fd6518a13
1 file changed
+6
+6
View File
@@ -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