From 035810d60a0fe2dfdb0c2417898b1616cf0285a8 Mon Sep 17 00:00:00 2001 From: nit Date: Mon, 25 Oct 2010 14:13:00 +0530 Subject: [PATCH] bug 6481: embedded object returned by attachVolume API would have the "type" property indicating the volume type of the disk volume (ROOT or DATADISK) status 6481: resolved fixed --- server/src/com/cloud/api/commands/AttachVolumeCmd.java | 1 + 1 file changed, 1 insertion(+) mode change 100644 => 100755 server/src/com/cloud/api/commands/AttachVolumeCmd.java diff --git a/server/src/com/cloud/api/commands/AttachVolumeCmd.java b/server/src/com/cloud/api/commands/AttachVolumeCmd.java old mode 100644 new mode 100755 index a8dc872bf22..7cd1b4785de --- a/server/src/com/cloud/api/commands/AttachVolumeCmd.java +++ b/server/src/com/cloud/api/commands/AttachVolumeCmd.java @@ -117,6 +117,7 @@ public class AttachVolumeCmd extends BaseAsyncCmd { response.setStorageType("shared"); // NOTE: You can never attach a local disk volume but if that changes, we need to change this response.setId(volume.getId()); response.setName(volume.getName()); + response.setVolumeType(volume.getVolumeType().toString()); response.setResponseName(getName()); return response;