mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-7114. [EC2 QueryAPI] Inconsistency in mapping the "Allocated" state of a Volume to "Available".
This commit is contained in:
parent
5ccd904e83
commit
56e37243b8
|
|
@ -1231,7 +1231,9 @@ public class EC2Engine extends ManagerBase {
|
|||
resp.setInstanceId(vol.getVirtualMachineId());
|
||||
resp.setSize(vol.getSize());
|
||||
resp.setSnapshotId(vol.getSnapshotId());
|
||||
resp.setState(vol.getState());
|
||||
if (vol.getState() != null) {
|
||||
resp.setState(mapToAmazonVolState(vol.getState()));
|
||||
}
|
||||
resp.setType(vol.getVolumeType());
|
||||
resp.setVMState(vol.getVirtualMachineState());
|
||||
resp.setAttachmentState("detached");
|
||||
|
|
|
|||
Loading…
Reference in New Issue