1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-30 22:50:10 +03:00

Feature #4238: Verify the required attributes on datastore update

This commit is contained in:
Jaime Melis 2015-12-22 09:31:34 +01:00
parent 5db705deae
commit d0f15994f4

View File

@ -761,6 +761,8 @@ int Datastore::from_xml(const string& xml)
int Datastore::post_update_template(string& error_str)
{
int rc;
string new_ds_mad;
string new_tm_mad;
string s_ds_type;
@ -878,6 +880,17 @@ int Datastore::post_update_template(string& error_str)
}
}
/* ---------------------------------------------------------------------- */
/* Verify that the template has the required attributees */
/* ---------------------------------------------------------------------- */
rc = set_ds_mad(ds_mad, error_str);
if ( rc != 0 )
{
return rc;
}
/* ---------------------------------------------------------------------- */
/* Set the BASE_PATH of the Datastore (class & template) */
/* ---------------------------------------------------------------------- */