You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ml...@apache.org on 2014/03/11 18:36:55 UTC

git commit: updated refs/heads/resize-root to a2faaad

Repository: cloudstack
Updated Branches:
  refs/heads/resize-root 9feb867fa -> a2faaaddb


root-resize: add rootdisksize parameter


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/a2faaadd
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/a2faaadd
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/a2faaadd

Branch: refs/heads/resize-root
Commit: a2faaaddbae8782edbf83522fcc0df9c5d7f66ce
Parents: 9feb867
Author: Marcus Sorensen <ma...@betterservers.com>
Authored: Tue Mar 11 11:36:40 2014 -0600
Committer: Marcus Sorensen <ma...@betterservers.com>
Committed: Tue Mar 11 11:36:40 2014 -0600

----------------------------------------------------------------------
 .../org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a2faaadd/api/src/org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java
----------------------------------------------------------------------
diff --git a/api/src/org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java b/api/src/org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java
index bd363da..87a68a6 100755
--- a/api/src/org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java
+++ b/api/src/org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java
@@ -118,6 +118,9 @@ public class DeployVMCmd extends BaseAsyncCreateCustomIdCmd {
     @Parameter(name = ApiConstants.SIZE, type = CommandType.LONG, description = "the arbitrary size for the DATADISK volume. Mutually exclusive with diskOfferingId")
     private Long size;
 
+    @Parameter(name = ApiConstants.ROOT_DISK_SIZE, type = CommandType.LONG, since = "4.4", description = "Optional field to resize root disk on deploy. Only applies to template-based deployments. Analogous to details[0].rootdisksize")
+    private Long rootdisksize;
+
     @Parameter(name = ApiConstants.GROUP, type = CommandType.STRING, description = "an optional group for the virtual machine")
     private String group;
 
@@ -216,6 +219,9 @@ public class DeployVMCmd extends BaseAsyncCreateCustomIdCmd {
                 }
             }
         }
+        if (rootdisksize != null) {
+            customparameterMap.put("rootdisksize", rootdisksize.toString());
+        }
         return customparameterMap;
     }