From 603874605d60b099d9cb0e1375efbc2f9b2e164d Mon Sep 17 00:00:00 2001 From: Kris McQueen Date: Mon, 18 Oct 2010 14:10:00 -0700 Subject: [PATCH] The serialized names for the old VIRTUAL_MACHINE_* constants weren't quite right. Fix these up. This is a good example for why there needs to be a pass through the API commands and responses and constants should be used in the annotations rather than the current strings that are in place. --- server/src/com/cloud/api/response/VolumeResponse.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/src/com/cloud/api/response/VolumeResponse.java b/server/src/com/cloud/api/response/VolumeResponse.java index 638de932dd8..8a2099d380f 100644 --- a/server/src/com/cloud/api/response/VolumeResponse.java +++ b/server/src/com/cloud/api/response/VolumeResponse.java @@ -50,13 +50,13 @@ public class VolumeResponse extends BaseResponse { @SerializedName("virtualmachineid") @Param(description="id of the virtual machine") private Long virtualMachineId; - @SerializedName("virtualmachinename") @Param(description="name of the virtual machine") + @SerializedName("vmname") @Param(description="name of the virtual machine") private String virtualMachineName; - @SerializedName("virtualmachinedisplayname") @Param(description="display name of the virtual machine") + @SerializedName("vmdisplayname") @Param(description="display name of the virtual machine") private String virtualMachineDisplayName; - @SerializedName("virtualmachinestate") @Param(description="state of the virtual machine") + @SerializedName("vmstate") @Param(description="state of the virtual machine") private String virtualMachineState; @SerializedName("size") @Param(description="size of the disk volume")