1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-25 23:21:29 +03:00

feature #1112: Remove check for missing attribute (default always added)

This commit is contained in:
Ruben S. Montero 2012-02-17 11:54:08 +01:00
parent 90f8569f18
commit 2b50e27a66

View File

@ -317,21 +317,13 @@ void Nebula::start()
tpool = new VMTemplatePool(db);
rc = nebula_configuration->get("SYSTEM_DS", system_ds);
nebula_configuration->get("SYSTEM_DS", system_ds);
if ( rc != 0 )
{
string value;
const VectorAttribute * ds_conf =
const VectorAttribute * ds_conf =
static_cast<const VectorAttribute *>(system_ds[0]);
ds_base_path = ds_conf->vector_value("BASE_PATH");
ds_type = ds_conf->vector_value("TYPE");
}
else
{
throw runtime_error("Missing SYSTEM_DS configuration from oned.conf");
}
ds_base_path = ds_conf->vector_value("BASE_PATH");
ds_type = ds_conf->vector_value("TYPE");
dspool = new DatastorePool(db, ds_base_path, ds_type);
}