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
This commit is contained in:
nit 2010-10-25 14:13:00 +05:30
parent 8ae5a70b06
commit 035810d60a
1 changed files with 1 additions and 0 deletions

1
server/src/com/cloud/api/commands/AttachVolumeCmd.java Normal file → Executable file
View File

@ -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;