mirror of https://github.com/apache/cloudstack.git
findbugs: repeated condition seems c&p error the tested states sugest that EXPUNGED should be the last one
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This closes #491
(cherry picked from commit bb613baa2b)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
04c7cf4e15
commit
eb904cd8fd
|
|
@ -1105,7 +1105,7 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic
|
|||
}
|
||||
|
||||
try {
|
||||
if (volume.getState() != Volume.State.Destroy && volume.getState() != Volume.State.Expunging && volume.getState() != Volume.State.Expunging) {
|
||||
if (volume.getState() != Volume.State.Destroy && volume.getState() != Volume.State.Expunging && volume.getState() != Volume.State.Expunged) {
|
||||
Long instanceId = volume.getInstanceId();
|
||||
if (!volService.destroyVolume(volume.getId())) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue