mirror of
https://github.com/OpenNebula/one.git
synced 2025-04-01 06:50:25 +03:00
feature-#206: Modified return value of VM pool allocate to comply with virtual definition
This commit is contained in:
parent
4f273d479f
commit
f91f9de99c
@ -42,7 +42,7 @@ public:
|
||||
* @param stemplate a string describing the VM
|
||||
* @param oid the id assigned to the VM (output)
|
||||
* @param on_hold flag to submit on hold
|
||||
* @return 0 on success, -1 error inserting in DB or -2 error parsing
|
||||
* @return oid on success, -1 error inserting in DB or -2 error parsing
|
||||
* the template
|
||||
*/
|
||||
int allocate (
|
||||
|
@ -226,7 +226,7 @@ int VirtualMachinePool::allocate (
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
return *oid;
|
||||
}
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
Loading…
x
Reference in New Issue
Block a user