Updated Branches: refs/heads/master 7dd88fbbc -> f6fb4d2f6
fix CLOUDSTACK-2142 migrateVirtua lMachine() API errors out when passing a valid uuid for storageid. Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/f6fb4d2f Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/f6fb4d2f Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/f6fb4d2f Branch: refs/heads/master Commit: f6fb4d2f6a9abe6f00ce359691bfe843f6b88895 Parents: 7dd88fb Author: Mice Xia <[email protected]> Authored: Tue Apr 23 14:44:59 2013 +0800 Committer: Mice Xia <[email protected]> Committed: Tue Apr 23 14:44:59 2013 +0800 ---------------------------------------------------------------------- .../api/command/admin/vm/MigrateVMCmd.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f6fb4d2f/api/src/org/apache/cloudstack/api/command/admin/vm/MigrateVMCmd.java ---------------------------------------------------------------------- diff --git a/api/src/org/apache/cloudstack/api/command/admin/vm/MigrateVMCmd.java b/api/src/org/apache/cloudstack/api/command/admin/vm/MigrateVMCmd.java index ddba78e..e9779ce 100644 --- a/api/src/org/apache/cloudstack/api/command/admin/vm/MigrateVMCmd.java +++ b/api/src/org/apache/cloudstack/api/command/admin/vm/MigrateVMCmd.java @@ -58,7 +58,7 @@ public class MigrateVMCmd extends BaseAsyncCmd { required=true, description="the ID of the virtual machine") private Long virtualMachineId; - @Parameter(name=ApiConstants.STORAGE_ID, type=CommandType.LONG, entityType=StoragePoolResponse.class, + @Parameter(name=ApiConstants.STORAGE_ID, type=CommandType.UUID, entityType=StoragePoolResponse.class, required=false, description="Destination storage pool ID to migrate VM volumes to. Required for migrating the root disk volume") private Long storageId;
