F #1880: Added param to check capacity when allocating a new image (this is only for admin users)

This commit is contained in:
juanmont authored and Ruben S. Montero committed 2018-06-25 16:36:52 +02:00
1 parent 75ce8a3056
commit fc92951994
6 files changed
+29 -11

No files matched your search

@@ -88,16 +88,18 @@ public class Image extends PoolElement
* @param client XML-RPC Client.
* @param description A string containing the template of the image.
* @param datastoreId The Datastore ID
* @param check_capacity to check datastore capacity
*
* @return If successful the message contains the associated
* id generated for this Image.
*/
public static OneResponse allocate(
Client client,
String description,
int datastoreId)
Client client,
String description,
int datastoreId,
boolean check_capacity = true)
{
return client.call(ALLOCATE, description, datastoreId);
return client.call(ALLOCATE, description, datastoreId, check_capacity);
}
/**