1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-11 05:17:41 +03:00

feature #3471: Add description to the default VDC

This commit is contained in:
Ruben S. Montero 2015-01-30 13:54:46 +01:00
parent 0d8d45d220
commit a2e49425b9

View File

@ -40,16 +40,15 @@ VdcPool::VdcPool(SqlDB * db, bool is_federation_slave)
if (get_lastOID() == -1) if (get_lastOID() == -1)
{ {
ostringstream vdc_tmpl; ostringstream vdc_tmpl;
vdc_tmpl << "NAME=" << DEFAULT_NAME; Template * tmpl = new Template;
int rc;
Template * tmpl;
// Build the default vdc // Build the default vdc
tmpl = new Template; vdc_tmpl << "NAME=" << DEFAULT_NAME << endl
rc = tmpl->parse_str_or_xml( << "DESCRIPTION=\"Every new group is added to this VDC. "
vdc_tmpl.str(), << "Use it to store default access rules for your groups. "
error_str); << "NOTE: You may need to remove a group from the default "
<< "VDC before assigning it to other VDC.\"\n";
int rc = tmpl->parse_str_or_xml(vdc_tmpl.str(), error_str);
if( rc < 0 ) if( rc < 0 )
{ {