mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 13:15:14 +09:00
Feature #1712: Add Ds id to deploy action, cli, ruby & java oca
This commit is contained in:
1 parent
9eb140e38b
commit
fe2d710146
3 files changed
+18
-11
No files matched your search
@@ -491,11 +491,13 @@ public class VirtualMachine extends PoolElement{
|
||||
* @param enforce If it is set to true, the host capacity
|
||||
* will be checked, and the deployment will fail if the host is
|
||||
* overcommited. Defaults to false
|
||||
* @param dsId The System Datastore where to deploy the VM. To use the
|
||||
* default, set it to -1
|
||||
* @return If an error occurs the error message contains the reason.
|
||||
*/
|
||||
public OneResponse deploy(int hostId, boolean enforce)
|
||||
public OneResponse deploy(int hostId, boolean enforce, int dsId)
|
||||
{
|
||||
return client.call(DEPLOY, id, hostId, enforce);
|
||||
return client.call(DEPLOY, id, hostId, enforce, dsId);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -507,7 +509,7 @@ public class VirtualMachine extends PoolElement{
|
||||
*/
|
||||
public OneResponse deploy(int hostId)
|
||||
{
|
||||
return deploy(hostId, false);
|
||||
return deploy(hostId, false, -1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user