mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 13:15:14 +09:00
F #1880: Added param to check capacity when allocating a new image (this is only for admin users)
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user