mirror of https://github.com/apache/cloudstack.git
resizeVolume: Volume can be in ready state or allocated state to resize
This commit is contained in:
parent
23c113bff6
commit
974fc4e671
|
|
@ -705,7 +705,7 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic
|
|||
throw new InvalidParameterValueException("Cloudstack currently only supports volumes marked as KVM, VMware, XenServer hypervisor for resize");
|
||||
}
|
||||
|
||||
if (volume.getState() != Volume.State.Ready || volume.getState() != Volume.State.Allocated) {
|
||||
if (volume.getState() != Volume.State.Ready && volume.getState() != Volume.State.Allocated) {
|
||||
throw new InvalidParameterValueException("Volume should be in ready or allocated state before attempting a resize");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue