mirror of
https://github.com/OpenNebula/one.git
synced 2025-02-08 05:57:23 +03:00
feature #201: set cluster id to -1 on error.
This commit is contained in:
parent
ddb9f27ca0
commit
fd0da733a9
@ -58,7 +58,8 @@ int ClusterPool::allocate(int * clid, string name, SqlDB *db)
|
||||
error_existing_name:
|
||||
error_db:
|
||||
error_common:
|
||||
return -1;
|
||||
*clid = -1;
|
||||
return *clid;
|
||||
}
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
Loading…
x
Reference in New Issue
Block a user