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

bug: Replace any existing VMID variable in VM template

This commit is contained in:
Ruben S. Montero 2012-03-31 18:12:26 +02:00
parent 01eaa79dc2
commit 00346f8dc2

View File

@ -209,9 +209,7 @@ int VirtualMachine::insert(SqlDB * db, string& error_str)
oss << oid;
value = oss.str();
attr = new SingleAttribute("VMID",value);
obj_template->set(attr);
replace_template_attribute("VMID", value);
get_template_attribute("NAME",name);