mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
bug #1799: Remove NAME from template in VMTemplate and Document classes
This commit is contained in:
parent
ea8afc435b
commit
8f3fdaf943
@ -79,7 +79,7 @@ int Document::insert(SqlDB *db, string& error_str)
|
||||
// Check default attributes
|
||||
// ---------------------------------------------------------------------
|
||||
|
||||
get_template_attribute("NAME", name);
|
||||
erase_template_attribute("NAME", name);
|
||||
|
||||
if ( name.empty() == true )
|
||||
{
|
||||
@ -199,8 +199,8 @@ string& Document::to_xml(string& xml) const
|
||||
<< "<ID>" << oid << "</ID>"
|
||||
<< "<UID>" << uid << "</UID>"
|
||||
<< "<GID>" << gid << "</GID>"
|
||||
<< "<UNAME>" << uname << "</UNAME>"
|
||||
<< "<GNAME>" << gname << "</GNAME>"
|
||||
<< "<UNAME>" << uname << "</UNAME>"
|
||||
<< "<GNAME>" << gname << "</GNAME>"
|
||||
<< "<NAME>" << name << "</NAME>"
|
||||
<< "<TYPE>" << type << "</TYPE>"
|
||||
<< perms_to_xml(perm_str)
|
||||
|
@ -81,7 +81,7 @@ int VMTemplate::insert(SqlDB *db, string& error_str)
|
||||
// Check default attributes
|
||||
// ---------------------------------------------------------------------
|
||||
|
||||
get_template_attribute("NAME", name);
|
||||
erase_template_attribute("NAME", name);
|
||||
|
||||
if ( name.empty() == true )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user