1
0
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:
Ruben S. Montero 2013-03-08 14:37:03 +01:00
parent ea8afc435b
commit 8f3fdaf943
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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 )
{