mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-25 02:50:08 +03:00
development: Fix error with COMPATIBLE_SYS_DS not being properly honored.
This commit is contained in:
parent
58cd92910a
commit
f7940ff71c
@ -1532,7 +1532,7 @@ static int get_datastore_requirements(Template *tmpl, set<int>& ds_ids,
|
||||
|
||||
int rc = check_and_set_datastores_id(csystem_ds, ds_ids);
|
||||
|
||||
if ( rc != 0 )
|
||||
if ( rc == -1 )
|
||||
{
|
||||
incomp_id = i;
|
||||
goto error_disk;
|
||||
@ -1576,6 +1576,11 @@ int VirtualMachine::automatic_requirements(set<int>& cluster_ids,
|
||||
|
||||
rc = get_datastore_requirements(obj_template, datastore_ids, error_str);
|
||||
|
||||
if (rc == -1)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
if ( !cluster_ids.empty() )
|
||||
{
|
||||
set<int>::iterator i = cluster_ids.begin();
|
||||
|
Loading…
x
Reference in New Issue
Block a user