1
0
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:
Constantino Vázquez Blanco 2010-05-03 17:21:35 +02:00
parent 4f273d479f
commit f91f9de99c
2 changed files with 2 additions and 2 deletions

View File

@ -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 (

View File

@ -226,7 +226,7 @@ int VirtualMachinePool::allocate (
}
}
return 0;
return *oid;
}
/* -------------------------------------------------------------------------- */