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:
parent
90f8569f18
commit
2b50e27a66
@ -317,21 +317,13 @@ void Nebula::start()
|
|||||||
|
|
||||||
tpool = new VMTemplatePool(db);
|
tpool = new VMTemplatePool(db);
|
||||||
|
|
||||||
rc = nebula_configuration->get("SYSTEM_DS", system_ds);
|
nebula_configuration->get("SYSTEM_DS", system_ds);
|
||||||
|
|
||||||
if ( rc != 0 )
|
const VectorAttribute * ds_conf =
|
||||||
{
|
|
||||||
string value;
|
|
||||||
const VectorAttribute * ds_conf =
|
|
||||||
static_cast<const VectorAttribute *>(system_ds[0]);
|
static_cast<const VectorAttribute *>(system_ds[0]);
|
||||||
|
|
||||||
ds_base_path = ds_conf->vector_value("BASE_PATH");
|
ds_base_path = ds_conf->vector_value("BASE_PATH");
|
||||||
ds_type = ds_conf->vector_value("TYPE");
|
ds_type = ds_conf->vector_value("TYPE");
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
throw runtime_error("Missing SYSTEM_DS configuration from oned.conf");
|
|
||||||
}
|
|
||||||
|
|
||||||
dspool = new DatastorePool(db, ds_base_path, ds_type);
|
dspool = new DatastorePool(db, ds_base_path, ds_type);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user