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:
parent
5db705deae
commit
d0f15994f4
@ -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) */
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
Loading…
x
Reference in New Issue
Block a user